diff options
author | mark <mark> | 2009-06-18 01:17:09 +0000 |
---|---|---|
committer | mark <mark> | 2009-06-18 01:17:09 +0000 |
commit | b236545e63f3653203baba2785506dbafe88a22a (patch) | |
tree | 70cbfd8480e49d2aa67195836393115e9893aca5 /httemplate/search | |
parent | 94ff0d1fe71494acad3cb252b1054c2768671c4a (diff) |
Fix receivables report ACL checks and menu
Diffstat (limited to 'httemplate/search')
-rwxr-xr-x | httemplate/search/report_receivables.cgi | 3 | ||||
-rwxr-xr-x | httemplate/search/report_receivables.html | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/search/report_receivables.cgi b/httemplate/search/report_receivables.cgi index 21d7d94c6..63adba05e 100755 --- a/httemplate/search/report_receivables.cgi +++ b/httemplate/search/report_receivables.cgi @@ -71,7 +71,8 @@ <%init> die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Receivables report'); + unless $FS::CurrentUser::CurrentUser->access_right('Receivables report') + or $FS::CurrentUser::CurrentUser->access_right('Financial reports'); my @ranges = ( [ 0, 30 ], diff --git a/httemplate/search/report_receivables.html b/httemplate/search/report_receivables.html index 4f29b063e..bfb016945 100755 --- a/httemplate/search/report_receivables.html +++ b/httemplate/search/report_receivables.html @@ -35,6 +35,7 @@ <%init> die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Receivables report'); + unless $FS::CurrentUser::CurrentUser->access_right('Receivables report') + or $FS::CurrentUser::CurrentUser->access_right('Financial reports'); </%init> |