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 @@ ...@@ -59,10 +59,12 @@
"""\n """\n
request = context.REQUEST\n request = context.REQUEST\n
portal = context.getPortalObject()\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 \n
if portal.portal_membership.isAnonymousUser() or \\\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 return False\n
\n \n
return True\n return True\n
...@@ -74,6 +76,10 @@ return True\n ...@@ -74,6 +76,10 @@ return True\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
<value> <value>
...@@ -102,9 +108,9 @@ return True\n ...@@ -102,9 +108,9 @@ return True\n
<string>context</string> <string>context</string>
<string>request</string> <string>request</string>
<string>portal</string> <string>portal</string>
<string>None</string>
<string>list_mode</string>
<string>False</string> <string>False</string>
<string>list_mode</string>
<string>dialog_mode</string>
<string>True</string> <string>True</string>
</tuple> </tuple>
</value> </value>
......
512 514
\ 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