summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorlevinse <levinse>2010-12-28 16:29:59 +0000
committerlevinse <levinse>2010-12-28 16:29:59 +0000
commit0d27e33123a49c7df587b2e62a62bc4f6bf96131 (patch)
tree7c656d334a96abf0a5b70aec87df87d77b33f23d /httemplate
parentdc29ccde3d063ed43dd74cea76196296b5116cf7 (diff)
better access rights for phone_avail report, part 1, RT10464
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/search/phone_avail.html3
-rwxr-xr-xhttemplate/search/report_phone_avail.html3
2 files changed, 3 insertions, 3 deletions
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;