election_day.security

Classes

MaybePublic

The general public is allowed to do this, if not otherwise defined

Functions

has_permission_maybe_public_not_logged_in(→ bool)

has_permission_maybe_public_logged_in(→ bool)

Module Contents

class election_day.security.MaybePublic[source]

Bases: onegov.core.security.permissions.Intent

The general public is allowed to do this, if not otherwise defined in the principal.

election_day.security.has_permission_maybe_public_not_logged_in(app: onegov.election_day.ElectionDayApp, identity: None, model: object, permission: object) bool[source]
election_day.security.has_permission_maybe_public_logged_in(app: onegov.election_day.ElectionDayApp, identity: morepath.authentication.Identity, model: object, permission: MaybePublic) bool[source]