From 28224960a09a5d60dbf059120d4e8acf354149aa Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 2 Dec 2021 12:32:55 +0100 Subject: [PATCH] sync permissions with backend --- src/permissions.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/permissions.ts b/src/permissions.ts index 2ba1b10..226e85e 100644 --- a/src/permissions.ts +++ b/src/permissions.ts @@ -1,12 +1,17 @@ export const PERMISSIONS = { - // Kann andere Nutzer bearbeiten + /* User permissions */ + // Can edit other users EDIT_OTHER: 'users_edit_other', - // Kann Rollen von Nutzern setzen + // Can assign roles to users SET_ROLES: 'users_set_roles', - // Kann Nutzer löschen - DELETE: 'users_delete_other', - // Kann neue Nutzer hinzufügen + // Can delete users + DELETE: 'users_delete', + // Can register new users REGISTER: 'users_register', - // Kann Rollen löschen oder bearbeiten, z.b. Rechte hinzufügen etc + + /* Role permissions */ + // Can edit roles, assign permissions to roles and change names ROLES_EDIT: 'roles_edit', + // Can delete roles + ROLES_DELETE: 'roles_delete', };