-
-
Save mmerickel/797816 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DayZeroContainer(ModelContainer): | |
def __init__(self, request, cls): | |
self.cls = cls | |
self.request = request | |
@property | |
def __acl__(self): | |
return [ | |
(Allow, 'owner:{0}'.format(cls.ownerid), ('add', 'edit)), | |
# ... some other acls for this particular resource? | |
] + Root.__acl__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment