Changes in ow/models/user.py [63df989:78af3d1] in OpenWorkouts-current
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/models/user.py
r63df989 r78af3d1 6 6 import bcrypt 7 7 from repoze.folder import Folder 8 from pyramid.security import Allow 8 from pyramid.security import Allow, Deny, Everyone, ALL_PERMISSIONS 9 9 10 10 from ow.catalog import get_catalog, reindex_object … … 18 18 def __acl__(self): 19 19 permissions = [ 20 (Allow, str(self.uid), 'view'), 20 21 (Allow, str(self.uid), 'edit'), 21 ( Allow, str(self.uid), 'view'),22 (Deny, Everyone, ALL_PERMISSIONS), 22 23 ] 23 24 return permissions
Note: See TracChangeset
for help on using the changeset viewer.