HideConfigurationTab: Difference between revisions
Jump to navigation
Jump to search
m (2 revisions imported) |
(No difference)
|
Latest revision as of 15:11, 6 April 2016
Original version contributed by BillGerrard This version by Richard Ellis - correct minor typo which displays Configuration tab at bottom instead of position 5
How to hide the Configuration Tab in RT3
RT 3.8.x and higher
It is as simple as not giving the user the SeeConfigTab privilege. Users who are not SuperUsers and without this privilege will not see the Configuration tab.
RT3.6.x and lower
First copy "/path/to/rt3/share/html/Elements/Tabs" to "/path/to/rt3/local/html/Elements/Tabs" then open it in your editor and remove the following code block:
my $basetabs = { A => { title => loc('Homepage'), path => '', }, B => { title => loc('Tickets'), path => 'Search/Build.html' }, E => { title => loc('Configuration'), path => 'Admin/' }, K => { title => loc('Preferences'), path => 'User/Prefs.html' }, P => { title => loc('Approval'), path => 'Approvals/' }, };
...and in its place add:
my $basetabs = { A => { title => loc('Homepage'), path => '', }, B => { title => loc('Tickets'), path => 'Search/Build.html' }, K => { title => loc('Preferences'), path => 'User/Prefs.html' }, P => { title => loc('Approval'), path => 'Approvals/' }, }; if ( $session{'CurrentUser'}->HasRight(Right => 'SuperUser', Object => $RT::System) ) { $basetabs->{'E'} = { title => loc('Configuration'), path => 'Admin/' }; }
Once this is working you can just assign your "admin" users the global right of "SuperUser" and they will see the config link. Regular users will not.