summaryrefslogtreecommitdiffstats
path: root/template/en/default/index.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/index.html.tmpl')
-rw-r--r--template/en/default/index.html.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/template/en/default/index.html.tmpl b/template/en/default/index.html.tmpl
index 5422061fd..d31a51d89 100644
--- a/template/en/default/index.html.tmpl
+++ b/template/en/default/index.html.tmpl
@@ -66,7 +66,9 @@ function addSidebar() {
</p><p>
[% IF user.id %]
<a href="userprefs.cgi">Change password or user preferences</a><br>
- <a href="relogin.cgi">Logout [% user.login FILTER html %]</a><br>
+ [% IF user.get_flag('can_logout') %]
+ <a href="relogin.cgi">Logout [% user.login FILTER html %]</a><br>
+ [% END %]
[% ELSE %]
<a href="query.cgi?GoAheadAndLogIn=1">Log in to an existing account</a><br>
[% IF Param('createemailregexp') %]