diff --git a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/Base_canUserAddGadget.xml b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/Base_canUserAddGadget.xml index 99acb1cca2ef1d0e4abe265225c7e21331bda91b..e422dc687300c5902dfed31dc4934038cabbb9bb 100644 --- a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/Base_canUserAddGadget.xml +++ b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/Base_canUserAddGadget.xml @@ -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> diff --git a/bt5/erp5_knowledge_pad/bt/revision b/bt5/erp5_knowledge_pad/bt/revision index 39886ae89b977ad2a15d12e0786fc5f05b68671d..54a584dece54566d69277ced81fff9d12cbd7243 100644 --- a/bt5/erp5_knowledge_pad/bt/revision +++ b/bt5/erp5_knowledge_pad/bt/revision @@ -1 +1 @@ -512 \ No newline at end of file +514 \ No newline at end of file