[freeside-commits] freeside/httemplate/search/elements cust_pay_or_refund.html, 1.14, 1.15

Ivan,,, ivan at wavetail.420.am
Tue Aug 2 17:05:03 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/search/elements
In directory wavetail.420.am:/tmp/cvs-serv18074/httemplate/search/elements

Modified Files:
	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.15
diff -u -w -d -r1.14 -r1.15
--- cust_pay_or_refund.html	21 May 2011 18:24:20 -0000	1.14
+++ cust_pay_or_refund.html	3 Aug 2011 00:05:01 -0000	1.15
@@ -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