Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-14280

Missing permission "edit relationships" in Drupal

    Details

    • 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

        Attachments

          Activity

            People

            • Assignee:
              chrischinchilla Chris Chinchilla
              Reporter:
              alanb Alan Brookland
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: