summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-04-26 18:00:05 -0700
committerIvan Kohler <ivan@freeside.biz>2017-04-26 18:00:05 -0700
commit8e927de64cab74f05bde5f0ceb4bd9995e18b31c (patch)
treefce4ce7f64e8d826654f2b340491a563e95ef4a3 /httemplate
parent44230b9d45c12920f5528ba5d3e4b11ec5dd5757 (diff)
fix customer searching with "List customers" right but not "List all customers", RT#75012
Diffstat (limited to 'httemplate')
-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;