diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml index 8fa526d99d33048cf4e91fc8eb5ebe2b0f0ecf3e..075a4ce6feef300c02e936ac069f419981ace14e 100644 --- a/product/ERP5/bootstrap/erp5_core/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/product/ERP5/bootstrap/erp5_core/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -15,10 +15,6 @@ <type>Favorite</type> <workflow>edit_workflow</workflow> </chain> - <chain> - <type>Link</type> - <workflow>edit_workflow</workflow> - </chain> <chain> <type>Mapped Value</type> <workflow>edit_workflow</workflow> diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_checkPermission.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_checkPermission.xml new file mode 100644 index 0000000000000000000000000000000000000000..f1f81a4b2d749a7e479e93c5efa66d53f01934d9 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_checkPermission.xml @@ -0,0 +1,161 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string># Check for a permission on an object specified by a given path\n +# for current user. Return true only if the user is allowed.\n +portal = context.getPortalObject()\n +ob = portal.restrictedTraverse(path, None)\n +if ob is not None:\n + if portal.portal_membership.checkPermission(permission, ob):\n + return 1\n +return 0\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>path, permission</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>2</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>path</string> + <string>permission</string> + <string>_getattr_</string> +<string>context</string> + <string>portal</string> + <string>None</string> + <string>ob</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_checkPermission</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 95738485793d46fac341b01b1f8f9468b4df0dd1..b6e81543f7a3a86729eb8267696ac7b869355551 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -326 \ No newline at end of file +330 \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_core/bt/template_portal_type_workflow_chain_list b/product/ERP5/bootstrap/erp5_core/bt/template_portal_type_workflow_chain_list index af03ec7123422bd27531a1ffee4e5f407b1bcadc..7ea4f5a763383a14e38a219b122f0a0cff0e6742 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/template_portal_type_workflow_chain_list +++ b/product/ERP5/bootstrap/erp5_core/bt/template_portal_type_workflow_chain_list @@ -2,7 +2,6 @@ Category Divergence Tester | edit_workflow Category | edit_workflow Document | edit_workflow Favorite | edit_workflow -Link | edit_workflow Mapped Value | edit_workflow Predicate | rule_interaction_workflow Preference | preference_workflow diff --git a/product/ERP5/bootstrap/erp5_core/bt/template_update_tool b/product/ERP5/bootstrap/erp5_core/bt/template_update_tool index c227083464fb9af8955c90d2924774ee50abb547..56a6051ca2b02b04ef92d5150c9ef600403cb1de 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/template_update_tool +++ b/product/ERP5/bootstrap/erp5_core/bt/template_update_tool @@ -1 +1 @@ -0 \ No newline at end of file +1 \ No newline at end of file