summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorlevinse <levinse>2010-12-28 16:34:50 +0000
committerlevinse <levinse>2010-12-28 16:34:50 +0000
commit4f6f5f8d508b87dfc024533d030792c6422480a5 (patch)
treeea85419f4614391a85905b8aa7207d2045603659 /httemplate
parent0d27e33123a49c7df587b2e62a62bc4f6bf96131 (diff)
better access rights for phone_avail report, part 2, RT10464
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/search/phone_avail.html1
-rwxr-xr-xhttemplate/search/report_phone_avail.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/httemplate/search/phone_avail.html b/httemplate/search/phone_avail.html
index 0ca09467c..b2b4630ae 100644
--- a/httemplate/search/phone_avail.html
+++ b/httemplate/search/phone_avail.html
@@ -75,6 +75,7 @@
die "access denied"
unless ( $FS::CurrentUser::CurrentUser->access_right('List inventory')
+ || $FS::CurrentUser::CurrentUser->access_right('List services')
);
my @search = ();
diff --git a/httemplate/search/report_phone_avail.html b/httemplate/search/report_phone_avail.html
index a896a5b12..cbb17cb90 100755
--- a/httemplate/search/report_phone_avail.html
+++ b/httemplate/search/report_phone_avail.html
@@ -84,6 +84,7 @@
die "access denied"
unless ( $FS::CurrentUser::CurrentUser->access_right('List inventory')
+ || $FS::CurrentUser::CurrentUser->access_right('List services')
);
my $conf = new FS::Conf;