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 (Moderator: Dave Greenberg) »
  • ACL: Access all groups except for two
Pages: [1]

Author Topic: ACL: Access all groups except for two  (Read 2217 times)

David L

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 2
ACL: Access all groups except for two
April 29, 2010, 10:57:26 am
I have about 30 groups. I want my Standard User role to be able to edit all groups except for two specific groups (the access control groups).

It seems that the only way to do this is to make 28 ACL's, each ACL giving the Standard User role permissions to a group, one by one.

Is there a cleaner way to do this, in just one ACL? (As in Edit : All Groups : Except for these access control ones)

(Also, what is the limit to adding ACL's to a role? Is 30 too much?)


-Dave

ps I realize I could make a Smart Group and add all non-access control groups to that smart group and then give my Standard User permissions to it, but the strain on the server worries me, for every time a contact is added it will need to remake that Smart Group.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: ACL: Access all groups except for two
April 29, 2010, 12:37:27 pm
In general, you are right and you include groups you can see, but not the other way around (exclude those you don't)

It probably won't help as you can't use smart groups for ACL, but there is a custom search that allow you to list everyone but those in your two groups: civicrm/contact/search/custom?csid=4&reset=1

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

David L

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 2
Re: ACL: Access all groups except for two
April 29, 2010, 01:51:09 pm
Has anybody discovered a way to hide all Access Control groups from the users?

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: ACL: Access all groups except for two
April 29, 2010, 07:49:05 pm

check:

http://svn.civicrm.org/hrd/trunk/drupal/hrd.module

you can use the hook to hide contacts from certain groups to all users other than the ones with a specific drupal role (access secure contacts in hrd module)

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

David L

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 2
Re: ACL: Access all groups except for two
April 30, 2010, 01:35:58 pm
Bingo! Thanks Lobo, it was exactly what I was looking for.

Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • ACL: Access all groups except for two

This forum was archived on 2017-11-26.