auth module provides basic pyramid auth helpers
Auth related methods and classes.
ACL list factory Mixin.
__acl__ is the attribute which stores the list.
Returns: | tuple (Allow|Deny, Group name, Permission) |
---|---|
Return type: | list |
Note
Can be converted later to database stored (sqlalchemy session is accessible through request.db)
Assing request as instance attribute.
Read all user’s groups.
Note
Adds s:inactive group to users who has not activated their account, and s:user group to those, who did. If user has is_admin flag, he gets s:superadmin group set
Might be useful, when you want restrict access to some parts of your application, but still allow log in, and access to some other parts.
Parameters: |
|
---|---|
Returns: | list of groups |
Return type: | list |