[freeside-commits] branch master updated. 1dc016bb424b246da6d9b53aa0b919d8e071f667

Ivan ivan at 420.am
Wed Apr 26 18:00:04 PDT 2017


The branch, master has been updated
       via  1dc016bb424b246da6d9b53aa0b919d8e071f667 (commit)
      from  e9f2cb50f9508ef790e5a37ffe68b2bcecc68930 (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 1dc016bb424b246da6d9b53aa0b919d8e071f667
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Apr 26 18:00:03 2017 -0700

    fix customer searching with "List customers" right but not "List all customers", RT#75012

diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi
index 65b8c05..74cc5f3 100755
--- a/httemplate/search/cust_main.cgi
+++ b/httemplate/search/cust_main.cgi
@@ -330,7 +330,8 @@
 my $curuser = $FS::CurrentUser::CurrentUser;
 
 die "access denied"
-  unless $curuser->access_right('List all customers');
+  unless $curuser->access_right('List all customers')
+      || $curuser->access_right('List customers');
 
 my $conf = new FS::Conf;
 my $maxrecords = $conf->config('maxsearchrecordsperpage') || 100;

-----------------------------------------------------------------------

Summary of changes:
 httemplate/search/cust_main.cgi |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list