Skip to content

Commit

Permalink
Explicit wrap adding callable in the site context. This is required w…
Browse files Browse the repository at this point in the history
…hen non-trivial roles guard the context. Fixes issue #6.
  • Loading branch information
malthe committed May 16, 2012
1 parent 0f83c67 commit b968503
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ Features:

Bugfixes:

- Fixed an issue with the panel adding view that made it impossible to
add panels to content marked as private (the request would be
unauthorized). This fixes issue #6.

- Views and resources are now registered against a package-specific
browser layer. This ensures that the user interface is not available
unless the product is installed (issue #6).
unless the product is installed (issue #7).

1.1 (2012-05-15)
----------------
Expand Down
3 changes: 2 additions & 1 deletion src/collective/panels/traversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from zExceptions import BadRequest, NotFound
from Acquisition import Implicit
from Acquisition import ExplicitAcquisitionWrapper
from OFS.Traversable import Traversable

from Products.statusmessages.interfaces import IStatusMessage
Expand Down Expand Up @@ -88,7 +89,7 @@ def adding():

return self.request.response.redirect(referer)

return adding
return ExplicitAcquisitionWrapper(adding, self)

for panel in panels:
if panel.__name__ == name:
Expand Down

0 comments on commit b968503

Please sign in to comment.