diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2017-04-26 18:00:05 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2017-04-26 18:00:05 -0700 |
| commit | 8e927de64cab74f05bde5f0ceb4bd9995e18b31c (patch) | |
| tree | fce4ce7f64e8d826654f2b340491a563e95ef4a3 /httemplate | |
| parent | 44230b9d45c12920f5528ba5d3e4b11ec5dd5757 (diff) | |
fix customer searching with "List customers" right but not "List all customers", RT#75012
Diffstat (limited to 'httemplate')
| -rwxr-xr-x | httemplate/search/cust_main.cgi | 3 |
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; |
