Commit 9730698f authored by Tres Seaver's avatar Tres Seaver

Issue #2296: Fix broken import of ZClass products.

parent a63210ca
......@@ -8,6 +8,10 @@ Zope Changes
Bugs fixed
- Collector #2296: Fixed import of ZClass products, broken by removal
of BBB support for pasting objects whose meta_type info was
permission-free.
- Collector #2294: Protected DOS-able ControlPanel methods with the
same 'requestmethod' wrapper.
......
......@@ -45,6 +45,7 @@ import ZClasses, AccessControl.Owned
from OFS.Folder import Folder
from HelpSys.HelpSys import ProductHelp
from AccessControl import Unauthorized
from AccessControl.Permissions import manage_zclasses
from Factory import Factory
from Permission import PermissionManager
......@@ -60,7 +61,8 @@ class ProductFolder(Folder):
meta_type ='Product Management'
icon='p_/ProductFolder_icon'
all_meta_types={'name': 'Product', 'action': 'manage_addProductForm'},
all_meta_types={'name': 'Product', 'action': 'manage_addProductForm',
'permission': manage_zclasses},
meta_types=all_meta_types
# This prevents subobjects from being owned!
......
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