Skip to content
Snippets Groups Projects
Commit f892c798 authored by Dave Greenberg's avatar Dave Greenberg
Browse files

Merge pull request #2754 from davecivicrm/CRM-14395

CRM-14395 - Prevent Edit button from being displayed on contact summary ...
parents 63a28527 256e40af
No related branches found
No related tags found
No related merge requests found
......@@ -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}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment