translator_directory.security

Functions

get_roles_setting(→ dict[str, ...)

has_permission_logged_in(→ bool)

restrict_auth_access(→ bool)

restrict_translator_access(→ bool)

restrict_translator_access_anon(→ bool)

restrict_general_file_coll_access(→ bool)

restrict_general_file_coll_access_anon(→ bool)

restrict_file_access(→ bool)

restrict_file_access_anon(→ bool)

restrict_general_file_access(→ bool)

restrict_general_file_access_anon(→ bool)

restrict_translator_docs_coll_access(→ bool)

disable_translator_docs_coll_access_anon(→ bool)

restricts_ticket(→ bool)

restricts_ticket_anon(→ bool)

restrict_ticket(→ bool)

restrict_ticket_anon(→ bool)

restrict_accreditation_ticket_anon(→ bool)

restrict_accreditation_ticket(→ bool)

restrict_translator_mutation_ticket(→ bool)

Module Contents

translator_directory.security.get_roles_setting() dict[str, set[type[onegov.core.security.roles.Intent]]][source]
translator_directory.security.has_permission_logged_in(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.Identity, model: object, permission: object) bool[source]
translator_directory.security.restrict_auth_access(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.Identity, model: onegov.user.Auth, permission: object) bool[source]
translator_directory.security.restrict_translator_access(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.Identity, model: onegov.translator_directory.models.translator.Translator, permission: object) bool[source]
translator_directory.security.restrict_translator_access_anon(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.NoIdentity, model: onegov.translator_directory.models.translator.Translator, permission: object) bool[source]
translator_directory.security.restrict_general_file_coll_access(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.Identity, model: onegov.org.models.GeneralFileCollection, permission: object) bool[source]
translator_directory.security.restrict_general_file_coll_access_anon(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.NoIdentity, model: onegov.org.models.GeneralFileCollection, permission: object) bool[source]
translator_directory.security.restrict_file_access(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.Identity, model: onegov.file.File, permission: object) bool[source]
translator_directory.security.restrict_file_access_anon(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.NoIdentity, model: onegov.file.File, permission: object) bool[source]
translator_directory.security.restrict_general_file_access(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.Identity, model: onegov.org.models.GeneralFile, permission: object) bool[source]
translator_directory.security.restrict_general_file_access_anon(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.NoIdentity, model: onegov.org.models.GeneralFile, permission: object) bool[source]
translator_directory.security.restrict_translator_docs_coll_access(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.Identity, model: onegov.translator_directory.collections.documents.TranslatorDocumentCollection, permission: object) bool[source]
translator_directory.security.disable_translator_docs_coll_access_anon(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.NoIdentity, model: onegov.translator_directory.collections.documents.TranslatorDocumentCollection, permission: object) bool[source]
translator_directory.security.restricts_ticket(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.Identity, model: onegov.ticket.TicketCollection, permission: object) bool[source]
translator_directory.security.restricts_ticket_anon(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.NoIdentity, model: onegov.ticket.TicketCollection, permission: object) bool[source]
translator_directory.security.restrict_ticket(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.Identity, model: onegov.ticket.Ticket, permission: object) bool[source]
translator_directory.security.restrict_ticket_anon(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.NoIdentity, model: onegov.ticket.Ticket, permission: object) bool[source]
translator_directory.security.restrict_accreditation_ticket_anon(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.NoIdentity, model: onegov.translator_directory.models.ticket.AccreditationTicket, permission: object) bool[source]
translator_directory.security.restrict_accreditation_ticket(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.Identity, model: onegov.translator_directory.models.ticket.AccreditationTicket, permission: object) bool[source]
translator_directory.security.restrict_translator_mutation_ticket(app: onegov.translator_directory.TranslatorDirectoryApp, identity: morepath.authentication.Identity, model: onegov.translator_directory.models.ticket.TranslatorMutationTicket, permission: object) bool[source]