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) »
  • Permission error in CiviCRM with Drupal UID=1
Pages: [1]

Author Topic: Permission error in CiviCRM with Drupal UID=1  (Read 433 times)

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Permission error in CiviCRM with Drupal UID=1
April 14, 2014, 12:04:38 pm
I have a Drupal 7 site with CiviCRM 4.4.3 and I'm having some permissions issues. I have a user in Drupal role CiviCRM Admin which has every permission pertaining to CiviCRM. This user can edit contact information such as the phone number but when this user tries to view a note the user gets a "You do not have the necessary permission to edit this contact." error message. If that user goes to "Manage ACLs" and hits 'edit' the user gets "You are not authorized to access this page.". This is also happening when I log in as the original Drupal user UID=1.

It's my understanding the regardless of any ACLs the Drupal permissions trump the CiviCRM permissions and Drupal UID=1 should be able to do anything regardless of any permissions.

For some background we originally had a Drupal 6 site. We built a fresh Drupal 7 site and installed CiviCRM on that. I then upgraded our Drupal 6 site to Drupal 7 and upgraded CiviCRM to the Drupal 7 version that we had installed on our new Drupal 7 site. I then exported the CiviCRM database from the upgraded site and imported it into our new Drupal 7 site. Everything seems to be working fine with the exception of these permission errors.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Permission error in CiviCRM with Drupal UID=1
April 14, 2014, 08:53:09 pm
This sounds more like a configuration error regarding $base_url in your civicrm.settings.php files -OR- https vs. https session issues.  But to confirm this create a role (if you don't have one already) with all CiviCRM permissions and give this role to UID 1.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Re: Permission error in CiviCRM with Drupal UID=1
April 15, 2014, 06:54:33 am
Thanks for the reply. I looked in the civicrm.settings.php file and the base URL path is correct. I also have a Drupal role named administrator which has every permission in Drupal, including all of the CiviCRM permissions and the user with UID 1 is a member of that role. Could you possibly give me more information on how https/http session issues could be causing this? This site is configured for https. I did notice when mousing over the edit link it was going to https if that makes a difference.

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Re: Permission error in CiviCRM with Drupal UID=1
April 15, 2014, 11:32:38 am
Something I just noticed. If I go to 'Manage ACL Roles' and try to delete one I get a 'You are not authorized to access this page.' error and I also seemed to be logged out of the Drupal site as my admin toolbar is gone and 'logout' is replaced by 'login'. But if I click any other link on the page, wherever that my be I'm suddenly logged back in.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Permission error in CiviCRM with Drupal UID=1

This forum was archived on 2017-11-26.