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 CiviMember (Moderator: Deepak Srivastava) »
  • ACL based on membership
Pages: [1]

Author Topic: ACL based on membership  (Read 887 times)

CatorgHans

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.4
  • CMS version: drupal
ACL based on membership
August 15, 2010, 02:44:52 am
Hello,

I would like ACL to be based on membership (status).
If someone has an active membership he should be able to access profiles that people with no valid membership can not see.

I tried to create a smart group based on membership status. But a smart group can not have Access Control.

The only way I could think of was to make use of both drupal modules
"CiviMember Roles Sync" and "CiviGroup Roles Sync", but not sure if that would work or that it would be advisable ("abusing drupal integration modules to get a CiviCrm internal job done")

Please advice on the best way to approach this..


sandys

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.92
Re: ACL based on membership
August 18, 2010, 11:04:47 am
I'm having some issues with our implementation, but I can help you with one thing.  ACL is Drupal's job, not Civi's.

We're using both the CiviMember Roles Sync and CiviGroup Roles Sync. 

So far, we seem to be having better luck with the CiviGroup Roles Sync. It's a one-way sync going from Civi groups to Drupal roles. We use that in this manner to allow Committee members extra access on our site:

1.  Add the Committee as a Group in Civi (this could also be a Smart Group)
2.  Add the Committee Name as a Term in the Taxonomy.
3.  Add a Role with the same name as the Committee Name just added to the Taxonomy.
4.  Make sure you assign the Committee Name Taxonomy.
5.  Enable Permissions for Committee Role and Committee Term.
6.  Add Committee Member(s) to the Committee Role in Civi.

CatorgHans

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.4
  • CMS version: drupal
Re: ACL based on membership
August 23, 2010, 12:28:00 am
I created a patch for civicrm_group_roles so that it is a 2-way sync. And then it works for me as well.

In the readme of that module is said it should be a 2-way sync although it could then influence sites that do not expect that behaviour.

http://issues.civicrm.org/jira/browse/CRM-6702

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • ACL based on membership

This forum was archived on 2017-11-26.