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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Hide some ACL groups
Pages: [1]

Author Topic: Hide some ACL groups  (Read 1379 times)

p.gervaix

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
    • ISHR
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63-0+squeeze1-log
  • PHP version: 5.3.3-7+squeeze13
Hide some ACL groups
March 16, 2012, 08:14:09 am
Hi ,
I want to hide ACL groups (not the contacts inside) in the search fields and in the New contacts function for normal users only

Thx in advance
Fil

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: Hide some ACL groups
March 16, 2012, 09:33:50 am

can you describe what you are trying to do and how you are going about it. Will give us some more context

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

mcternan

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.4.11
  • CMS version: Drupal 7.10
  • MySQL version: 5.1.58
  • PHP version: 5.3
Re: Hide some ACL groups
March 22, 2012, 07:31:14 pm
I am not sure if the OP wanted the same thing as us but since I think we have a similar question I will resurrect this thread.

Is it possible to 'hide' the ACL groups from the general 'manage groups' view.

We would like users to be able to view all groups except for the ACL groups.

Here is an example of what we have:

Mail Group 1
Mail Group 2
Mail Group 3
ACL Group 1
ACL Group 2
ACL Group 3

Generally we will have 1 ACL group for each corresponding Mailing group. When a user is logged in, we want them to be only able to see the Mail Groups, even if they are a member of 1 or more ACL groups.

I've been having a look at the hooks but cannot see an obvious way to achieve this through them.

Cheers,

Conor


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: Hide some ACL groups
March 22, 2012, 07:43:13 pm

There are two ACL related hooks:

http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification#CiviCRMhookspecification-Permissionrelatedhooks

You can use the hook_civicrm_aclGroup

to control what groups a user has access to

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

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Hide some ACL groups
March 23, 2012, 12:40:37 am
One good example is this module that has uses the two hooks
http://svn.civicrm.org/hrd/trunk/
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Hide some ACL groups

This forum was archived on 2017-11-26.