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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Using ACL roles User can't see sub-groups
Pages: [1]

Author Topic: Using ACL roles User can't see sub-groups  (Read 769 times)

RYL_FDH

  • Guest
Using ACL roles User can't see sub-groups
August 24, 2010, 01:18:07 am
Hey everybody,

I set up groups for different cities in which my organization operates.
For each city i created a "city-group" (only the city name) as a parent group, and different groups (Management-Board, supporters, etc..) as "sub-Groups".
Now I set the permission for the leader of the city group to see all contacts in this group. (via ACL-roles)

But the city-leader can only see all the contacts (for they are all in the city group), but only the city group (and not the sub-groups).
How can I fix that?



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: Using ACL roles User can't see sub-groups
August 24, 2010, 07:35:02 am

are you doing this via hooks or via the UI?

if via the UI, i dont think the ACL UI knows about parent groups and sub-groups as yet. Depending on the number of cities, your best bet will be to do this via a hook. Much more scalable that way

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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Using ACL roles User can't see sub-groups
August 24, 2010, 03:11:22 pm
I didn't realise that - I thought the civicrm_group_contact_cache table (from memory) held smart group memberships and sub-group memberships. It certainly seems to in the multisite implementation.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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: Using ACL roles User can't see sub-groups
August 24, 2010, 03:57:08 pm

yes it does that, but what groups are included in the parent group etc are not known the the UI based ACL system as yet. Would be great if someone contributes code to do this aspect and/or sponsors the core team to work on ACL improvements (suspect its a 20-40 hour project)

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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Using ACL roles User can't see sub-groups
August 24, 2010, 03:59:17 pm
Ok - I didn't realise that - I've never had cause to use sub-groups via the UI but I had assumed that it would work like the person who started this thread suggested.

But, you are saying hook ACLS & CiviMail DO understand the sub-groups?

Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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: Using ACL roles User can't see sub-groups
August 24, 2010, 04:08:04 pm

acl hooks are dependent on whos implemented the code. the multisite module that we developed for circle/gmvco does understand it

civimail uses the contacts from a group, so it does not understand (or care about) sub-groups. the underlying groups code takes care of contacts in a sub-group are part of parent group part etc

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Using ACL roles User can't see sub-groups

This forum was archived on 2017-11-26.