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

Suppress edit link in list of contacts where they don't have edit rights.

    Details

    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      The list of contacts returned by a search has the edit link even though the user may not have edit rights. This can cause CiviCRM to revert to say the Joomla Adminstrator home page. The attached file ("..\CRM\Contact\Selector.php") contains a change that suppresses the link unless the user has Edit All Contacts privilege. Because the links aren't generate for each user, Selector.php can't apply ACLs to whether the Edit link is suppressed.

      I'm unfamiliar with the system for supplying patches, so please forgive me if I am not using it correctly. No doubt someone with more familiarity with the coding standards will wish to correct/comment.

        Attachments

        1. Selector.diff
          1 kB
          Stephen Palmstrom
        2. Selector.php
          35 kB
          Stephen Palmstrom

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              spalmstr Stephen Palmstrom
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: