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: bit lost
Pages: [1]

Author Topic: ACL: bit lost  (Read 1048 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
ACL: bit lost
March 13, 2009, 05:53:06 am
Hi,

I will have various people working on contacts in their own country. I would like to restrict what they see and can change, eg. a french guy will only be able to see the contact in France.

They way I understand it is that you have to create two groups per country, one "french contacts", the other "french workers" (they can be smart groups) and you grant to french workers the right to see contacts in the french contact.

Is this the correct way of doing it ?

Moreover, I'd like to be able to restrict what they can/can't do on the activities, eg. I'd like that only some can send emails. Is this possible directly ? Assuming that it isn't, I would like to modify some templates and not put the "send email" link, or take some mass emailing actions off. Is this possible to test in the templates if the connected user belongs or not to a group ?

Thanks in advance,

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

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: bit lost
March 13, 2009, 06:47:33 am

how many countries do you want to implement the below for? if more than 5-10, i would recommend using acl hooks (that way you can avoid the explosion of groups (2 per country))

check: http://civicrm.org/node/381

If you want to do it via the UI, your description sounds right. The only issue is "french workers" needs to be a static group

To edit the links on the page, you will need to modify: templates/CRM/Activity/Form/ActivityLinks.tpl. You can use php code in the templates via the {php} tag (check the smarty manual for details). Ideally we should put ALL the links in the hookLinks array and then the 'hook' implementation can add / delete the links. Can you please file an issue and we'll fix this for 2.3 :) (maybe even 2.2.1, if the changes dont seem to much :)

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) »
  • ACL: bit lost

This forum was archived on 2017-11-26.