[freeside-commits] branch FREESIDE_4_BRANCH updated. 76ab8e3f6ebd579b2bf9804528b55189d47f77bc
Ivan
ivan at 420.am
Thu Apr 27 13:07:23 PDT 2017
The branch, FREESIDE_4_BRANCH has been updated
via 76ab8e3f6ebd579b2bf9804528b55189d47f77bc (commit)
from b3c02d2a1d52c0e095f7e34f857f7cd4be6385a9 (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 76ab8e3f6ebd579b2bf9804528b55189d47f77bc
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Apr 27 13:07:23 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 74cc5f3..cce4f0d 100755
--- a/httemplate/search/cust_main.cgi
+++ b/httemplate/search/cust_main.cgi
@@ -352,9 +352,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