[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.7-848-gd598800
Shawn Moore
sartak at bestpractical.com
Mon Dec 13 16:24:21 EST 2010
The branch, 3.9-trunk has been updated
via d5988006c2b202590892406ee886eb4550e7215a (commit)
from 102542f693b5f5d773e7f14b4ee7d3121a3b1ed5 (commit)
Summary of changes:
share/html/Elements/Tabs | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit d5988006c2b202590892406ee886eb4550e7215a
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Mon Dec 13 16:24:06 2010 -0500
Hide the query log menu item unless you can actually see it
diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index 1f75989..5ae181f 100755
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -194,7 +194,12 @@ if ( $request_path !~ qr{^/SelfService/} ) {
my $admin_tools = $admin->child( tools => title => loc('Tools'), path => '/Admin/Tools/', );
$admin_tools->child( configuration => title => loc('System Configuration'), path => '/Admin/Tools/Configuration.html', );
- $admin_tools->child( 'sql-queries' => title => loc('SQL Queries'), path => '/Admin/Tools/Queries.html', );
+
+ if (RT->Config->Get('StatementLog')
+ && $session{'CurrentUser'}->HasRight( Right => 'SuperUser', Object => $RT::System )) {
+ $admin_tools->child( 'sql-queries' => title => loc('SQL Queries'), path => '/Admin/Tools/Queries.html', );
+ }
+
$admin_tools->child( shredder => title => loc('Shredder'), path => '/Admin/Tools/Shredder', );
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list