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) »
  • [ Solved]edit only One group via ACLs and Drupal permissions-What am I missing?
Pages: [1]

Author Topic: [ Solved]edit only One group via ACLs and Drupal permissions-What am I missing?  (Read 472 times)

lappies

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
  • CiviCRM version: 4.2.9
  • CMS version: Drupal 7.22
  • MySQL version: v5
  • PHP version: 5.3
[ Solved]edit only One group via ACLs and Drupal permissions-What am I missing?
May 28, 2013, 09:33:50 am
Solved: I somehow had the  Related Permissions Module enabled: It worked but since I was not aware of it , the normal group operation failed. I discovered it when there were a lot of extra tables relationship 2345 and secondaryrelationship343434 in the DB. I leave the post below for record keeping to see how one can battle.
Thanks again for this awesome software which I use for over 5 years now.
For the first time I need to use ACL's and cannot just use the Drupal permissions. :)
All the examples points what I try to do hide/expose groups is very typical and suppose to be a piece of cake, howeve.. I am searching the net and this forums for over 3 days now, but no ahah moment yet.

The setup:
I am using civi 4.2.9 and Drupal 7.22 on a share serer therfore only Civi 4.2.9 can be loaded.
The usual was created:

1 Drupal role,
2 Civi role,
3 Civi usergroup that I want to edit only,
4 Civi Admin access group (Access ticked) and
5 assigned users to both groups
6 set up ACL's as per instructions.

I know that Drupal permissions got preference over ACL's so here  is where I stand

When I assign the "view all" or "edit all" permissions in Drupal's  user role permissions, I can view and edit all the users in the civi user-group that I need, but also all the other contacts in other groups that I don't want to edit.
When I untick the "view all "and "edit all" in the drupal permissions I can only see the desired group in the group dropdown but then do not see ANY contacts any more, (ACL is then additional above the drupal permissions but with no view effect and when searching an error message says , No contacts that match the search criteria.

Some more info;
I did create profiles and custom data but need only ACL's on the civi User-group (hide/expose groups)?

ANY POINTERS that I miss?
Only further clue I am still trying to ponder is  this remark below but no reference how to set it up since I am under the impression I do not use it:
  You'll also find this note on the Manage ACLs page:
   IMPORTANT: The Drupal permissions for 'access all custom data' and 'profile listings and forms' override and disable specific ACL settings for custom field groups and profiles respectively. Do not enable those Drupal permissions for a Drupal role if you want to use CiviCRM ACL's to control access.

even playing with these settings brings up the yellow screen or do not make a difference in search results.
(I also cleared browser cache as well as acl cache tables in DB with phpmyadmin, but still no progress.)
( The closest that I came from a clue for search success was that when one of the admin access group contacts had a two way mutual editable relationship with one contact in the the civi Usergroup, then I could view that contact only.)


Any sugestions what I can try next or a way to progress?

Is anyone's experience that if you only want group restrictions, the custum data and profile listings settings on/off make a difference?

Thanks that we can learn from each other's experiences and grow together.
« Last Edit: June 04, 2013, 02:07:17 pm by lappies »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • [ Solved]edit only One group via ACLs and Drupal permissions-What am I missing?

This forum was archived on 2017-11-26.