Commit c1602b3e authored by Ivan Tyagov's avatar Ivan Tyagov

Do not enable Add gadgets in dialog mode.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35452 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e835e0bc
......@@ -59,10 +59,12 @@
"""\n
request = context.REQUEST\n
portal = context.getPortalObject()\n
list_mode = request.get(\'list_mode\', None)\n
list_mode = request.get(\'list_mode\', False)\n
dialog_mode = request.get(\'dialog_mode\', False)\n
\n
if portal.portal_membership.isAnonymousUser() or \\\n
list_mode is not None:\n
list_mode == True or \\\n
dialog_mode == True:\n
return False\n
\n
return True\n
......@@ -74,6 +76,10 @@ return True\n
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
......@@ -102,9 +108,9 @@ return True\n
<string>context</string>
<string>request</string>
<string>portal</string>
<string>None</string>
<string>list_mode</string>
<string>False</string>
<string>list_mode</string>
<string>dialog_mode</string>
<string>True</string>
</tuple>
</value>
......
512
\ No newline at end of file
514
\ 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