File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
templates/CRM/Contribute/Page Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,9 @@ function browse() {
136
136
require_once 'CRM/Contribute/BAO/ContributionRecur.php ' ;
137
137
require_once 'CRM/Core/BAO/PaymentProcessor.php ' ;
138
138
139
+ // Check permission have "edit contributions"
140
+ $ this ->assign ('editContributionPermission ' , CRM_Core_Permission::check ('edit contributions ' ));
141
+
139
142
// add annual contribution
140
143
$ annual = array ();
141
144
list ($ annual ['count ' ],
Original file line number Diff line number Diff line change 40
40
</div >
41
41
42
42
<div class =" action-link-button" >
43
- { if $action eq 16 and $permission EQ ' edit ' }
43
+ { if $action eq 16 and $editContributionPermission }
44
44
{ capture assign= newContribURL} { crmURL p= " civicrm/contact/view/contribution" q= " reset=1&action=add&cid=`$contactId`&context=contribution" } { /capture }
45
45
<a accesskey =" N" href =" { $newContribURL } " class =" button" >{ ts} Record Contribution (Check, Cash, EFT ...){ /ts} </a >
46
46
{ if $newCredit }
You can’t perform that action at this time.
0 commit comments