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 @@ ...@@ -67,7 +67,7 @@
tal:content="user_name"/>\n tal:content="user_name"/>\n
</tal:block>\n </tal:block>\n
\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 <a id="login-logout-link" \n
href="#" \n href="#" \n
tal:attributes="href string:${portal_path}/login_form"\n tal:attributes="href string:${portal_path}/login_form"\n
...@@ -76,8 +76,7 @@ ...@@ -76,8 +76,7 @@
title="Log in">Log in</a>\n title="Log in">Log in</a>\n
</tal:block>\n </tal:block>\n
\n \n
</tal:block>\n </tal:block>
]]></unicode> </value> ]]></unicode> </value>
</item> </item>
...@@ -99,7 +98,7 @@ ...@@ -99,7 +98,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <unicode></unicode> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
1840 1841
\ No newline at end of file \ 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