[events] Fixed permissions names
This commit is contained in:
parent
775e775e89
commit
c3aeeea2ce
|
@ -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("_")]
|
||||
|
|
Loading…
Reference in New Issue