Commit 0a6e6f19 authored by Tres Seaver's avatar Tres Seaver

Issue #2296: Fix broken ZClass product import.

parent e3e54b0c
...@@ -88,6 +88,10 @@ Zope Changes ...@@ -88,6 +88,10 @@ Zope Changes
Bugs Fixed 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 - Collector #2294: Protected DOS-able ControlPanel methods with the
same 'requestmethod' wrapper. same 'requestmethod' wrapper.
......
...@@ -47,6 +47,7 @@ from OFS.Folder import Folder ...@@ -47,6 +47,7 @@ from OFS.Folder import Folder
from HelpSys.HelpSys import ProductHelp from HelpSys.HelpSys import ProductHelp
from AccessControl import Unauthorized from AccessControl import Unauthorized
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from AccessControl.Permissions import manage_zclasses
from Factory import Factory from Factory import Factory
from Permission import PermissionManager from Permission import PermissionManager
...@@ -73,7 +74,8 @@ class ProductFolder(Folder): ...@@ -73,7 +74,8 @@ class ProductFolder(Folder):
meta_type ='Product Management' meta_type ='Product Management'
icon='p_/ProductFolder_icon' 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 meta_types=all_meta_types
# This prevents subobjects from being owned! # 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