diff options
Diffstat (limited to 'template/en/default/global/useful-links.html.tmpl')
-rw-r--r-- | template/en/default/global/useful-links.html.tmpl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl index b2e598163..3ac44d62a 100644 --- a/template/en/default/global/useful-links.html.tmpl +++ b/template/en/default/global/useful-links.html.tmpl @@ -57,7 +57,7 @@ [% IF user.login %] [% ' | <a href="sanitycheck.cgi">Sanity check</a>' IF user.groups.tweakparams %] - [% IF user.get_flag('can_logout') %] + [% IF user.authorizer.can_logout %] | <a href="relogin.cgi">Log out</a> [% ELSE %] | Logged in as @@ -70,10 +70,13 @@ [% user.login FILTER html %] [% END %] [% ELSE %] - [% IF Param('createemailregexp') %] + [% IF Param('createemailregexp') + && user.authorizer.user_can_create_account %] | <a href="createaccount.cgi">New Account</a> [% END %] - | <a href="index.cgi?GoAheadAndLogIn=1">Log In</a> + [% IF user.authorizer.can_login %] + | <a href="index.cgi?GoAheadAndLogIn=1">Log In</a> + [% END %] [% END %] </div> </div> |