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) »
  • ACL problem
Pages: [1]

Author Topic: ACL problem  (Read 393 times)

isatyam

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Joomla 2.5.16
  • MySQL version: 5.5
  • PHP version: 5.3
ACL problem
November 24, 2013, 11:26:28 pm
Hi,

We have 2 main parent groups of contacts in our CiviCRM installation: HNIs and Non-HNIs. Each of these parent groups have different child groups. Only Admin users must be able to access HNI contacts. The other 'General users' should have access only to non-HNI contacts.

We have tried to achieve this in the following manner:
1. We have a CiviCRM group of Admin users (who have the access to login to Joomla backend and they have permissions to add and delete civicrm contacts).
2. By Joomla ACL we have given the "view and edit all contacts" permission only to Admin. General users do not have "view and edit all contacts" permission.
3. Next we have created a smart group of all non-HNI contacts. Any new contact gets added to this smart group unless added specifically to the HNI group.
4. The General users are given edit access to this Smart Group by an ACL rule.

So far, if a General user searches for contacts in the HNI group he is not able to see any of the HNI contacts.

However, some HNI contacts were also added to non-HNI lists (such as newsletter lists). Now since they are part of both groups, they are becoming visible to the General user.

Is there a way to ensure that the restriction (general users cant access HNIs) supercedes the permission (general users can access non-HNIs)?

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 problem
November 25, 2013, 06:45:10 am

not with the current UI setup since the ACL's are only ALLOW and not DENY

u should be able to do this via a hook, might want to check:

https://civicrm.org/node/339

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

isatyam

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Joomla 2.5.16
  • MySQL version: 5.5
  • PHP version: 5.3
Re: ACL problem
November 28, 2013, 09:24:34 am
Thanx for your reply Lobo...
I will explore this option and get back to you if I get stuck somewhere.

Satyam

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • ACL problem

This forum was archived on 2017-11-26.