[rt-commit] [svn] r480 - rt/branches/rt-3.1/html/Admin/Tools
jesse at fsck.com
jesse at fsck.com
Fri Mar 5 14:19:16 EST 2004
Author: jesse
Date: Fri Mar 5 14:19:16 2004
New Revision: 480
Modified:
rt/branches/rt-3.1/html/Admin/Tools/Configuration.html
Log:
Fixing the admin configuration reporter to abort properly if the user isn't an administrator
Modified: rt/branches/rt-3.1/html/Admin/Tools/Configuration.html
==============================================================================
--- rt/branches/rt-3.1/html/Admin/Tools/Configuration.html (original)
+++ rt/branches/rt-3.1/html/Admin/Tools/Configuration.html Fri Mar 5 14:19:16 2004
@@ -1,6 +1,11 @@
<%init>
require Module::Versions::Report;
my $title = loc('System Configuration');
+unless ($session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'SuperUser')) {
+ Abort(loc('This feature is only available to system administrators'));
+}
+
+
</%init>
<& /Admin/Elements/Header, Title => $title &>
<& /Admin/Elements/ToolTabs,
@@ -9,10 +14,6 @@
Title => $title &>
-
-% unless ($session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'SuperUser')) {
-% Abort(loc('This feature is only available to system administrators'));
-% }
<h2><&|/l&>Loaded perl modules</&></h2>
More information about the Rt-commit
mailing list