[Rt-commit] [svn] r1544 - rt/branches/3.3-TESTING/html/Elements
tla at pallas.eruditorum.org
tla at pallas.eruditorum.org
Wed Sep 22 12:21:25 EDT 2004
Author: tla
Date: Wed Sep 22 12:21:24 2004
New Revision: 1544
Modified:
rt/branches/3.3-TESTING/html/Elements/Header
Log:
If a user does not have the ModifySelf right, he/she should also not
be able to see the Prefs link in the header.
Modified: rt/branches/3.3-TESTING/html/Elements/Header
==============================================================================
--- rt/branches/3.3-TESTING/html/Elements/Header (original)
+++ rt/branches/3.3-TESTING/html/Elements/Header Wed Sep 22 12:21:24 2004
@@ -83,7 +83,9 @@
<td width="50%" align="right">
% if ($session{'CurrentUser'} && $session{'CurrentUser'}->Id && $LoggedIn) {
<SPAN STYLE="display: none"><A HREF="#skipnav"><&|/l&>Skip Menu</&></A> |</SPAN>
+%if ($session{'CurrentUser'}->HasRight( Right => 'ModifySelf', Object => $RT::System )) {
<A HREF="<%$RT::WebPath%><% $Prefs %>" ><&|/l&>Preferences</&></A>
+% }
<& /Elements/Callback, %ARGS &>
% unless ($RT::WebExternalAuth and !$RT::WebFallbackToInternalAuth) {
| <A HREF="<%$RT::WebPath%>/NoAuth/Logout.html<%$URL && "?URL=".$URL%>"><&|/l&>Logout</&></a>
More information about the Rt-commit
mailing list