[freeside-commits] freeside/httemplate/search/elements cust_pay_or_refund.html, 1.14, 1.14.2.1
Ivan,,,
ivan at wavetail.420.am
Tue Aug 2 17:05:04 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/search/elements
In directory wavetail.420.am:/tmp/cvs-serv18077/httemplate/search/elements
Modified Files:
Tag: FREESIDE_2_3_BRANCH
cust_pay_or_refund.html
Log Message:
resolve inconsistency with posting payments then not having the ACL to view them: add "View payments" and "View refunds" rights, redirect payment/refund posting back to customer view if you cannot see the result
Index: cust_pay_or_refund.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/cust_pay_or_refund.html,v
retrieving revision 1.14
retrieving revision 1.14.2.1
diff -u -w -d -r1.14 -r1.14.2.1
--- cust_pay_or_refund.html 21 May 2011 18:24:20 -0000 1.14
+++ cust_pay_or_refund.html 3 Aug 2011 00:05:02 -0000 1.14.2.1
@@ -74,8 +74,9 @@
$title .= "\u$name_singular Search Results";
my $link = '';
-if ( ( $curuser->access_right('View invoices') #XXX for now
- || $curuser->access_right('View customer payments')
+if ( ( $curuser->access_right('View invoices') #remove in 2.5 (2.7?)
+ || ($curuser->access_right('View payments') && $table =~ /^cust_pay/)
+ || ($curuser->access_right('View refunds') && $table eq 'cust_refund')
)
&& ! $opt{'disable_link'}
)
More information about the freeside-commits
mailing list