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