Changeset 78af3d1 in OpenWorkouts-current for ow/models/user.py
- Timestamp:
- Feb 9, 2019, 9:42:52 PM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- 56caf3d
- Parents:
- 55470f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/models/user.py
r55470f9 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.