From: Ivan Kohler Date: Thu, 27 Apr 2017 01:00:03 +0000 (-0700) Subject: fix customer searching with "List customers" right but not "List all customers",... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=1dc016bb424b246da6d9b53aa0b919d8e071f667 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 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;