Commit 8647baae authored by Ivan Tyagov's avatar Ivan Tyagov

show login form link only if user is allowed to login to web site.

parent 2af7cb79
......@@ -67,7 +67,7 @@
tal:content="user_name"/>\n
</tal:block>\n
\n
<tal:block tal:condition="is_anonymous_user">\n
<tal:block tal:condition="python: is_anonymous_user and current_web_site.isUserAllowedLogin()">\n
<a id="login-logout-link" \n
href="#" \n
tal:attributes="href string:${portal_path}/login_form"\n
......@@ -76,8 +76,7 @@
title="Log in">Log in</a>\n
</tal:block>\n
\n
</tal:block>\n
</tal:block>
]]></unicode> </value>
</item>
......@@ -99,7 +98,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
......
1840
\ No newline at end of file
1841
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment