Commit 03bd4dcb authored by Martin Aspeli's avatar Martin Aspeli
parent 23b22fd6
...@@ -27,6 +27,7 @@ from zope.publisher.interfaces import NotFound ...@@ -27,6 +27,7 @@ from zope.publisher.interfaces import NotFound
from zope.publisher.interfaces.browser import IBrowserPublisher from zope.publisher.interfaces.browser import IBrowserPublisher
from zope.ptresource.ptresource import PageTemplate from zope.ptresource.ptresource import PageTemplate
from Acquisition import aq_base
from Products.Five.browser import BrowserView from Products.Five.browser import BrowserView
...@@ -165,7 +166,8 @@ class DirectoryResource(Resource, ...@@ -165,7 +166,8 @@ class DirectoryResource(Resource,
# We need to propagate security so that restrictedTraverse() will # We need to propagate security so that restrictedTraverse() will
# work # work
resource.__roles__ = self.__roles__ if hasattr(aq_base(self), '__roles__'):
resource.__roles__ = self.__roles__
return resource return resource
......
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