From 8ccfdb30def6869d6943066f0e300db5687debf1 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Wed, 17 Jul 2013 17:39:08 -0700 Subject: [PATCH] Needed additional condition to show Edit button for user who has edit my contact and is viewing their own contact record. --- templates/CRM/Contact/Page/View/Summary.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Contact/Page/View/Summary.tpl b/templates/CRM/Contact/Page/View/Summary.tpl index 2658f830fa..53733dea27 100644 --- a/templates/CRM/Contact/Page/View/Summary.tpl +++ b/templates/CRM/Contact/Page/View/Summary.tpl @@ -56,8 +56,8 @@ {include file="CRM/Contact/Page/Inline/Actions.tpl"} {/if} - {* Include Edit button if contact has 'edit contacts' permission OR user is viewing their own contact AND has 'edit my contact' permission. (Either condition sets $permission EQ 'edit') *} - {if $permission EQ 'edit'} + {* 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')}
  • {assign var='editParams' value=$urlParams|cat:"&action=update&cid=$contactId"} -- 2.25.1