Commit 3e1072c9 authored by Shane Hathaway's avatar Shane Hathaway

Fixed a unit test that relied on Unauthorized errors appearing out of thin air :-)

parent 6982b7b3
...@@ -59,9 +59,7 @@ class CruelSecurityPolicy: ...@@ -59,9 +59,7 @@ class CruelSecurityPolicy:
# Standard SecurityPolicy interface # Standard SecurityPolicy interface
# #
def validate(self, accessed, container, name, value, *args): def validate(self, accessed, container, name, value, *args):
if aq_base(accessed) is aq_base(container): raise Unauthorized, name
raise Unauthorized, name
return 0
def checkPermission( self, permission, object, context) : def checkPermission( self, permission, object, context) :
return 0 return 0
......
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