sync permissions with backend

This commit is contained in:
Ferdinand Thiessen 2021-12-02 12:32:55 +01:00
parent 542f157b49
commit 28224960a0
1 changed files with 11 additions and 6 deletions

View File

@ -1,12 +1,17 @@
export const PERMISSIONS = { export const PERMISSIONS = {
// Kann andere Nutzer bearbeiten /* User permissions */
// Can edit other users
EDIT_OTHER: 'users_edit_other', EDIT_OTHER: 'users_edit_other',
// Kann Rollen von Nutzern setzen // Can assign roles to users
SET_ROLES: 'users_set_roles', SET_ROLES: 'users_set_roles',
// Kann Nutzer löschen // Can delete users
DELETE: 'users_delete_other', DELETE: 'users_delete',
// Kann neue Nutzer hinzufügen // Can register new users
REGISTER: 'users_register', 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', ROLES_EDIT: 'roles_edit',
// Can delete roles
ROLES_DELETE: 'roles_delete',
}; };