summaryrefslogtreecommitdiff
path: root/rt/html/Elements/Tabs
diff options
context:
space:
mode:
authorivan <ivan>2005-10-15 09:33:53 +0000
committerivan <ivan>2005-10-15 09:33:53 +0000
commit6863b061a7740eed16903f01dae6b46521e9ca7b (patch)
tree3fe155299627714d423d7140ab60de4e1db95044 /rt/html/Elements/Tabs
parent673b9a458d9138523026963df6fa3b4683e09bae (diff)
landing rt 3.4.4 on HEAD
Diffstat (limited to 'rt/html/Elements/Tabs')
-rw-r--r--rt/html/Elements/Tabs26
1 files changed, 17 insertions, 9 deletions
diff --git a/rt/html/Elements/Tabs b/rt/html/Elements/Tabs
index 4a018bf..f5839a9 100644
--- a/rt/html/Elements/Tabs
+++ b/rt/html/Elements/Tabs
@@ -1,8 +1,8 @@
-%# {{{ BEGIN BPS TAGGED BLOCK
+%# BEGIN BPS TAGGED BLOCK {{{
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC
%# <jesse@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@ -42,7 +42,7 @@
%# works based on those contributions, and sublicense and distribute
%# those contributions and any derivatives thereof.
%#
-%# }}} END BPS TAGGED BLOCK
+%# END BPS TAGGED BLOCK }}}
<& /Elements/PageLayout,
current_toptab => $current_toptab,
current_tab => $current_tab,
@@ -76,17 +76,25 @@ my $basetabs = {
C => { title => loc('Tools'),
path => 'Tools/Offline.html'
},
- E => { title => loc('Configuration'),
- path => 'Admin/'
- },
- K => { title => loc('Preferences'),
- path => 'User/Prefs.html'
- },
P => { title => loc('Approval'),
path => 'Approvals/'
},
};
+if ($session{'CurrentUser'}->HasRight( Right => 'ShowConfigTab',
+ Object => $RT::System )) {
+ $basetabs->{E} = { title => loc('Configuration'),
+ path => 'Admin/',
+ };
+}
+
+if ($session{'CurrentUser'}->HasRight( Right => 'ModifySelf',
+ Object => $RT::System )) {
+ $basetabs->{K} = { title => loc('Preferences'),
+ path => 'User/Prefs.html'
+ };
+}
+
if (!defined $toptabs) {
$toptabs = $basetabs;
}