Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-13840 Edit button not showing when viewing Contact record
  3. CRM-14395

Edit button is displayed for users who do NOT have permission to edit the contact

    Details

    • Type: Sub-task
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.4, 4.5
    • Fix Version/s: 4.5
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      I think is a regression related to the addition of the 'edit my contact' permission in 4.4. If the user does NOT have permission to edit the contact they still get the Edit button. If they click it - they get the expected 'You do not have permission ...' message.

      The button should not be displayed when user doesn't have edit permission. Extra conditional in Summary.tpl was not needed as CRM_Contact_Page_View::checkUserPermission handles this and assigns $permission true as applicable.

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: