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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Need Help with Multi-level Organization ACL Permission
Pages: [1]

Author Topic: Need Help with Multi-level Organization ACL Permission  (Read 623 times)

ivykong

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Jooma 1.7
  • MySQL version: 5.5
  • PHP version: 5.3.8
Need Help with Multi-level Organization ACL Permission
September 12, 2012, 08:51:48 am
I am reposting this message from the core function forum and hope I can get some helps here!
http://forum.civicrm.org/index.php/topic,25948.0.html

I am building a site for a university which will need to use multi-level ACL. This is similar to the case in NZ Green Party,

    Staff at university Provost's office has access to all faculty or students contact records,
    College dean has access to all faculty or students contact records within its college,
    Department chair has access to all faculty or students records within its own department.

I am trying to follow the instruction on this page about multi-level organization ACL permission  at wiki.civicrm.org/confluence/display/CRMDOC41/Multi-level+Organization+ACL+Permissions, and the post about permission hooks at  wiki.civicrm.org/confluence/display/CRMDOC41/CiviCRM+hook+specification#CiviCRMhookspecification-Permissionrelatedhooks.

However, before I come to the point to create a hook, the system doesn't allow me to use the the same field names in different custom field groups. I can't use the same fields (college, department) for the region and permissions group of custom fields.  Therefore, I assume the codes from the hook_civicrm_aclWhereClause won't work...

Anybody has suggestion how to make this work?

Thanks.

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: Need Help with Multi-level Organization ACL Permission
September 12, 2012, 09:24:40 am

I think the names can be different. That link advocated similar names so that the users/admins will not get confused

the custom code basically decides which fields are permissioning fields and which fields are permissioned fields.

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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Need Help with Multi-level Organization ACL Permission

This forum was archived on 2017-11-26.