[freeside-commits] branch FREESIDE_3_BRANCH updated. 6d922e31555a5888a1c070ea403e5d80608d357c
Ivan
ivan at 420.am
Thu Apr 27 13:07:25 PDT 2017
The branch, FREESIDE_3_BRANCH has been updated
via 6d922e31555a5888a1c070ea403e5d80608d357c (commit)
from e0a759bb54e95c8b3502b33c3ac691e58de0641b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6d922e31555a5888a1c070ea403e5d80608d357c
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Apr 27 13:07:24 2017 -0700
access control for List all customers, RT#75012
diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi
index a5293f4..1bd2288 100755
--- a/httemplate/search/cust_main.cgi
+++ b/httemplate/search/cust_main.cgi
@@ -351,9 +351,11 @@ my(@cust_main, $sortby, $orderby);
my @select = ();
my @addl_headers = ();
my @addl_cols = ();
-if ( $cgi->param('browse')
- || $cgi->param('otaker_on')
- || $cgi->param('agentnum_on')
+if ( ( $cgi->param('browse')
+ || $cgi->param('otaker_on')
+ || $cgi->param('agentnum_on')
+ )
+ and $curuser->access_right('List all customers')
) {
my %search = ();
-----------------------------------------------------------------------
Summary of changes:
httemplate/search/cust_main.cgi | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
More information about the freeside-commits
mailing list