guards#

Guards for the teams domain.

app.domain.teams.guards.requires_team_admin(connection: ASGIConnection, _: BaseRouteHandler) None[source]#

Verify the connection user is a team admin.

Parameters:
  • connection (ASGIConnection) – _description_

  • _ (BaseRouteHandler) – _description_

Raises:

PermissionDeniedException – _description_

app.domain.teams.guards.requires_team_membership(connection: ASGIConnection, _: BaseRouteHandler) None[source]#

Verify the connection user is a member of the team.

Parameters:
  • connection (ASGIConnection) – _description_

  • _ (BaseRouteHandler) – _description_

Raises:

PermissionDeniedException – _description_

app.domain.teams.guards.requires_team_ownership(connection: ASGIConnection, _: BaseRouteHandler) None[source]#

Verify that the connection user is the team owner.

Parameters:
  • connection (ASGIConnection) – _description_

  • _ (BaseRouteHandler) – _description_

Raises:

PermissionDeniedException – _description_