Skip to content

Commit

Permalink
Port whitelist creation from zope.browserpage
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewWilkes committed May 27, 2019
1 parent 57da264 commit 1fb6ed8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Products/Five/browser/metaconfigure.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ def publishTraverse(self, request, name,
_handle_allowed_attributes(_context, allowed_attributes, permission,
required)
_handle_for(_context, for_)
new_class._simple_whitelist = set(required) - set([attribute, 'browserDefault', '__call__', 'publishTraverse'])

_configure_z2security(_context, newclass, required)

Expand Down

0 comments on commit 1fb6ed8

Please sign in to comment.