Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.3.5
-
Fix Version/s: 4.7.13
-
Component/s: Core CiviCRM, Drupal Integration Modules
-
Labels:
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
The views integration modules provide text links for view/edit/delete relationships and the view and edit ones check the user has the "edit relationships" permission which doesn't exist.
I have had to create that permission myself so I can set it for the correct Drupal roles otherwise only user 1 (the superadmin) gets the edit and delete links and all other users get the edit link actually being the view link and the delete link just being text and not an actual link.
I've done this by editing civicrm/drupal/civicrm.module function civicrm_permission() adding:
$perms_array['edit relationships'] = array('title' => 'CiviCRM: edit relationships');
to the end of the function just before:
return $perms_array;
Probably this permission needs to be set up elsewhere in CRM_Core_Permission but I haven't the time to dig into the CiviCRM code to figure it out.
I'm using Drupal 7.18 and CiviCRM 4.3.5