Distinguish custom field VIEW from EDIT permissions
[civicrm-core.git] / templates / CRM / Profile / Page / MultipleRecordFieldsListing.tpl
index dc185e6d1d97a9a0da52a6570d9f72472f6cb1ea..04deb6cd1bd4fe70f37468599bc2a6cd02ca7e11 100644 (file)
@@ -98,7 +98,7 @@
     <div id='{$dialogId}' class="hiddenElement"></div>
   {/if}
 
-  {if !$reachedMax}
+  {if empty($reachedMax) && !empty($editPermission)}
     <div class="action-link">
       {if $pageViewType eq 'customDataView'}
         <br/><a accesskey="N" title="{ts 1=$customGroupTitle}Add %1 Record{/ts}" href="{crmURL p='civicrm/contact/view/cd/edit' q="reset=1&type=$ctype&groupID=$customGroupId&entityID=$contactId&cgcount=$newCgCount&multiRecordDisplay=single&mode=add"}"