CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • How to limit member directory just to authenticated users
Pages: [1]

Author Topic: How to limit member directory just to authenticated users  (Read 1483 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
How to limit member directory just to authenticated users
August 09, 2010, 09:51:27 pm
How can I restrict a CiviCRM member directory profile so that only authenticated users ( under Drupal 6.x) can get to the member directory.
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to limit member directory just to authenticated users
August 09, 2010, 11:58:34 pm
This can be implemented using hooks. So you can expose link to membership list only for logged in contacts. You can implement page run  hook so that if anonymous users tries to access it give access denied.

HTh
Kurund
Found this reply helpful? Support CiviCRM

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: How to limit member directory just to authenticated users
August 10, 2010, 04:33:52 am
I thought there was a way to do this via CiviCRM ACLs. Are hooks the only way?
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to limit member directory just to authenticated users
August 10, 2010, 06:02:48 am
FYI, CiviCRM does not support ACL's for joomla.

Kurund
Found this reply helpful? Support CiviCRM

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to limit member directory just to authenticated users
August 10, 2010, 08:12:05 am

drupal or joomla?

in drupal, u can do restrict access to specific profiles via acl's.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: How to limit member directory just to authenticated users
August 10, 2010, 08:41:58 am
I am using Drupal 6.x in this environment.
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: How to limit member directory just to authenticated users
August 10, 2010, 08:50:49 am
I already have an ACL as follows:

Role   Operation   Type of Data   Which Data   Description   Enabled?   
Administrator   Edit   Group   All Groups   Edit All Contacts    Yes   EditDisableDelete
Authenticated   All   Profile   Member Directory   View and Search Member Directory    Yes   EditDisableDelete

( The profile I am protecting is called "Member Directory" )

Even though I have this ACL set up ( and tied to the ACL role "Authenticated" ), an anonymous user can still view the member directory.
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to limit member directory just to authenticated users
August 10, 2010, 10:32:39 am

check the drupal permissions for the anon user. The drupal permissions override the acls

if i had to guess, the drupal anon user has profile listings and forms permission

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: How to limit member directory just to authenticated users
August 10, 2010, 12:02:53 pm
I took away permission for anon to "profile listings and forms" which works as far as keeping them out of the member directory, but now they cannot make a donation ( as the donation page includes a profile. )
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: How to limit member directory just to authenticated users
August 10, 2010, 12:17:29 pm
I figured it out. I had to give anonymous permission to edit and create profiles ( which they did not previously have ).
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • How to limit member directory just to authenticated users

This forum was archived on 2017-11-26.