[freeside-commits] freeside/httemplate/view cust_refund.html, 1.8, 1.8.2.1 cust_pay.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/view
In directory wavetail.420.am:/tmp/cvs-serv18077/httemplate/view
Modified Files:
Tag: FREESIDE_2_3_BRANCH
cust_refund.html cust_pay.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.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_pay.html,v
retrieving revision 1.14
retrieving revision 1.14.2.1
diff -u -w -d -r1.14 -r1.14.2.1
--- cust_pay.html 27 May 2011 02:25:42 -0000 1.14
+++ cust_pay.html 3 Aug 2011 00:05:02 -0000 1.14.2.1
@@ -134,8 +134,8 @@
my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied"
- unless $curuser->access_right('View invoices') #remove this in 1.9 EVENTUALLY
- || $curuser->access_right('View customer payments');
+ unless $curuser->access_right('View invoices') #remove this in 2.5 (2.7?)
+ || $curuser->access_right('View payments');
$cgi->param('paynum') =~ /^(\d+)$/ or die "no paynum";
my $paynum = $1;
Index: cust_refund.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_refund.html,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -u -w -d -r1.8 -r1.8.2.1
--- cust_refund.html 27 May 2011 02:25:42 -0000 1.8
+++ cust_refund.html 3 Aug 2011 00:05:02 -0000 1.8.2.1
@@ -105,10 +105,8 @@
my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied"
- unless $curuser->access_right('View invoices') #remove this in 1.9 EVENTUALLY
- || $curuser->access_right('View customer payments');
- #'View customer refunds' ???
-
+ unless $curuser->access_right('View invoices') #remove this in 2.5 (2.7?)
+ || $curuser->access_right('View refunds');
$cgi->param('refundnum') =~ /^(\d+)$/ or die "no refundnum";
my $refundnum = $1;
More information about the freeside-commits
mailing list