diff --git a/templates/CRM/Contact/Page/View/Summary.tpl b/templates/CRM/Contact/Page/View/Summary.tpl index 20bf7f7036591befc9bc9c0724fa0f213e7c8bd3..398ac5eeaa7c5e905b7f5de109849ad845db31e1 100644 --- a/templates/CRM/Contact/Page/View/Summary.tpl +++ b/templates/CRM/Contact/Page/View/Summary.tpl @@ -54,8 +54,8 @@ {include file="CRM/Contact/Page/Inline/Actions.tpl"} </li> {/if} - {* Include Edit button if contact has 'edit contacts' permission OR user is viewing their own contact AND has 'edit my contact' permission. *} - {if $permission EQ 'edit' || call_user_func(array('CRM_Core_Permission','check'), 'edit my contact')} + {* Include Edit button if contact has 'edit contacts' permission OR user is viewing their own contact AND has 'edit my contact' permission. CRM_Contact_Page_View::checkUserPermission handles this and assigns $permission true as needed. *} + {if $permission EQ 'edit'} <li> {assign var='editParams' value=$urlParams|cat:"&action=update&cid=$contactId"} <a href="{crmURL p='civicrm/contact/add' q=$editParams}" class="edit button" title="{ts}Edit{/ts}">