Commit e56461f6 authored by Vincent Pelletier's avatar Vincent Pelletier

Remove unneeded code.

Subobject access policy (ie, what's intended here) has nothing to do with
"declareProtected".
parent 842584dc
...@@ -943,13 +943,6 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -943,13 +943,6 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
method = RelatedBaseCategory(base_category_id) method = RelatedBaseCategory(base_category_id)
setattr(self.__class__, name, method) setattr(self.__class__, name, method)
klass = aq_base(self).__class__
if hasattr(klass, 'security'):
from Products.ERP5Type import Permissions as ERP5Permissions
klass.security.declareProtected(ERP5Permissions.View, name)
else:
LOG('ERP5Catalog', PROBLEM,
'Security not defined on %s' % klass.__name__)
return getattr(self, name) return getattr(self, name)
else: else:
return aq_base_name return aq_base_name
......
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