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.