assembl.auth package¶
Submodules¶
Module contents¶
Utility modules for permissions and authentication
This module defines basic roles and permissions.
-
class
assembl.auth.
CrudPermissions
(create=None, read=None, update=None, delete=None, update_owned=None, delete_owned=None, read_owned=None, variable=False)[source]¶ Bases:
object
A set of permissions required to Create, Read, Update or Delete an instance of a given class
The
crud_permissions
class attribute of a model class should hold an instance of this class. Special permissions can be defined if you own this instance, according toassembl.lib.sqla.BaseOps.is_owned()