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 Profiles (Moderator: Dave Greenberg) »
  • CIvi ACLs don't work as expected
Pages: [1]

Author Topic: CIvi ACLs don't work as expected  (Read 1022 times)

mauricem

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
CIvi ACLs don't work as expected
June 28, 2010, 05:16:08 pm
I'm trying to use CIVI ACLs to provide selective access for specific Drupal authenticated users to specific Contact Groups and associated Profiles. Here are the steps so far:
1. Turned off profile listings, profile listings and forms access for Anonymous User in Drupal Permissions
2. Used Civi ACLs to give "Everyone Role" access to the Profiles that are allowed Public access
So far so good, that works fine and anonymous users can access the allowed profiles/data

3. I now try to create Roles and ACLs to provide restricted access to other Profiles/Data and assign these to specific User Groups (that have been defined  as Access Control Groups)

When I try to access the profile as one of these Authorized users, I keep getting the message:
Sorry. A non-recoverable error has occurred.
The requested Profile (gid=20) is disabled OR it is not configured to be used for 'Profile' listings in its Settings OR there is no Profile with that ID OR you do not have permission to access this profile. Please contact the site administrator if you need assistance.

I am unable to provide users with access to these profiles, unless I create an ACL that gives the "Everyone Role" access.

Any ideas on this?

mauricem

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: CIvi ACLs don't work as expected
June 29, 2010, 02:58:11 pm
Ok... looks like I've solved my own problem.. The issue was apparently due to duplicate contact records existing where the one associated with the Drupal user was not assigned to the privileged Group... Once corrected the ACL feature works fine..

I only have one more question on this.. Can anyone advise how to customize the Error message obtained when a user does not you do not have permission to access a profile.. to replace the catch-all message below?
Sorry. A non-recoverable error has occurred.
The requested Profile (gid=20) is disabled OR it is not configured to be used for 'Profile' listings in its Settings OR there is no Profile with that ID OR you do not have permission to access this profile. Please contact the site administrator if you need assistance.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • CIvi ACLs don't work as expected

This forum was archived on 2017-11-26.