projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.15
[freeside.git]
/
rt
/
share
/
html
/
Approvals
/
autohandler
diff --git
a/rt/share/html/Approvals/autohandler
b/rt/share/html/Approvals/autohandler
index
a057706
..
1c5c0b6
100644
(file)
--- a/
rt/share/html/Approvals/autohandler
+++ b/
rt/share/html/Approvals/autohandler
@@
-2,7
+2,7
@@
%#
%# COPYRIGHT:
%#
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-201
2
Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-201
8
Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@
-46,8
+46,13
@@
%#
%# END BPS TAGGED BLOCK }}}
<%init>
%#
%# END BPS TAGGED BLOCK }}}
<%init>
-
$m->call_next(%ARGS) if
$session{'CurrentUser'}->UserObj->HasRight(
+
if (
$session{'CurrentUser'}->UserObj->HasRight(
Right => 'ShowApprovalsTab',
Object => $RT::System,
Right => 'ShowApprovalsTab',
Object => $RT::System,
-);
+) ) {
+ $m->call_next(%ARGS);
+}
+else {
+ Abort("No permission to view approval");
+}
</%init>
</%init>