CRM-13840 Edit button not showing when viewing Contact record
authorKen West <ken.west@internode.on.net>
Tue, 26 Nov 2013 22:47:26 +0000 (09:47 +1100)
committerKen West <ken.west@internode.on.net>
Tue, 26 Nov 2013 22:47:26 +0000 (09:47 +1100)
templates/CRM/Contact/Page/View/Summary.tpl

index c29488aac17fdb4374cb7986f58805b7e7f3366e..dcd452400753bb6df22a5950e0f9a2e5864f5c07 100644 (file)
@@ -58,7 +58,7 @@
             </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')}
+          {if $permission EQ 'edit' || call_user_func(array('CRM_Core_Permission','check'), 'edit my contact')}
             <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}">