From: levinse Date: Tue, 28 Dec 2010 16:29:58 +0000 (+0000) Subject: better access rights for phone_avail report, part 1, RT10464 X-Git-Tag: freeside_2_3_0~811 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=3560f41760e7a9f1489b5f96d8cf162ee25bed9a better access rights for phone_avail report, part 1, RT10464 --- diff --git a/httemplate/search/phone_avail.html b/httemplate/search/phone_avail.html index 9f287625a..0ca09467c 100644 --- a/httemplate/search/phone_avail.html +++ b/httemplate/search/phone_avail.html @@ -74,7 +74,8 @@ <%init> die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Import'); + unless ( $FS::CurrentUser::CurrentUser->access_right('List inventory') + ); my @search = (); diff --git a/httemplate/search/report_phone_avail.html b/httemplate/search/report_phone_avail.html index c81206afc..a896a5b12 100755 --- a/httemplate/search/report_phone_avail.html +++ b/httemplate/search/report_phone_avail.html @@ -83,8 +83,7 @@ <%init> die "access denied" - unless ( $FS::CurrentUser::CurrentUser->access_right('List customers') && - $FS::CurrentUser::CurrentUser->access_right('List packages') + unless ( $FS::CurrentUser::CurrentUser->access_right('List inventory') ); my $conf = new FS::Conf;