[Rt-commit] r19918 - rt/3.8/trunk/share/html/Admin/Global
sartak at bestpractical.com
sartak at bestpractical.com
Fri Jun 5 20:56:45 EDT 2009
Author: sartak
Date: Fri Jun 5 20:56:44 2009
New Revision: 19918
Modified:
rt/3.8/trunk/share/html/Admin/Global/MyRT.html
Log:
Require SuperUser for editing global RT at a Glance
Modified: rt/3.8/trunk/share/html/Admin/Global/MyRT.html
==============================================================================
--- rt/3.8/trunk/share/html/Admin/Global/MyRT.html (original)
+++ rt/3.8/trunk/share/html/Admin/Global/MyRT.html Fri Jun 5 20:56:44 2009
@@ -91,8 +91,13 @@
current_portlets => $default_portlets->Content,
OnSave => sub {
my ( $conf, $pane ) = @_;
- $default_portlets->SetContent( $conf );
- push @actions, loc( 'Global portlet [_1] saved.', $pane );
+ if (!$session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'SuperUser')) {
+ push @actions, loc( 'Permission denied' );
+ }
+ else {
+ $default_portlets->SetContent( $conf );
+ push @actions, loc( 'Global portlet [_1] saved.', $pane );
+ }
}
);
More information about the Rt-commit
mailing list