From c3aeeea2ce8a00fc7d4e8ea4c29a98fefaaddb6c Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 29 Mar 2021 07:33:20 +0200 Subject: [PATCH] [events] Fixed permissions names --- flaschengeist/plugins/events/permissions.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/flaschengeist/plugins/events/permissions.py b/flaschengeist/plugins/events/permissions.py index f889793..459967c 100644 --- a/flaschengeist/plugins/events/permissions.py +++ b/flaschengeist/plugins/events/permissions.py @@ -1,22 +1,25 @@ -CREATE = "schedule_create" +CREATE = "events_create" """Can create events""" -EDIT = "schedule_edit" +EDIT = "events_edit" """Can edit events""" -DELETE = "schedule_delete" +DELETE = "events_delete" """Can delete events""" -EVENT_TYPE = "schedule_event_type" +EVENT_TYPE = "events_event_type" """Can create and edit EventTypes""" -JOB_TYPE = "schedule_job_type" +JOB_TYPE = "events_job_type" """Can create and edit JobTypes""" -ASSIGN = "schedule_assign" +ASSIGN = "events_assign" """Can self assign to jobs""" -ASSIGN_OTHER = "schedule_assign_other" +ASSIGN_OTHER = "events_assign_other" """Can assign other users to jobs""" +SEE_BACKUP = "events_see_backup" +"""Can see users assigned as backup""" + permissions = [value for key, value in globals().items() if not key.startswith("_")]