summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-04-26 18:00:03 -0700
committerIvan Kohler <ivan@freeside.biz>2017-04-26 18:00:03 -0700
commit1dc016bb424b246da6d9b53aa0b919d8e071f667 (patch)
treeadf56899161067e3d5d641cdb6fdaaa5342311e6
parente9f2cb50f9508ef790e5a37ffe68b2bcecc68930 (diff)
fix customer searching with "List customers" right but not "List all customers", RT#75012
-rwxr-xr-xhttemplate/search/cust_main.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi
index 65b8c0582..74cc5f32c 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;