From 1dc016bb424b246da6d9b53aa0b919d8e071f667 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 26 Apr 2017 18:00:03 -0700 Subject: [PATCH] fix customer searching with "List customers" right but not "List all customers", RT#75012 --- httemplate/search/cust_main.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.11.0