feriennet.policy
Attributes
Classes
Limits activity queries depending on the current user. |
Module Contents
- class feriennet.policy.ActivityQueryPolicy(username: str | None, role: str | None)[source]
Limits activity queries depending on the current user.
- classmethod for_identity(identity: morepath.authentication.Identity | morepath.authentication.NoIdentity | None) Self [source]
- granted_subset(query: sqlalchemy.orm.Query[T]) sqlalchemy.orm.Query[T] [source]
Limits the given activites query for the given user.