Add new right CREATE_CONTRIBUTION_MESSAGE

This commit is contained in:
elweyn 2022-08-22 10:13:11 +02:00
parent a2cd06b063
commit 8f117f23b4
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ export enum RIGHTS {
LIST_CONTRIBUTION_LINKS = 'LIST_CONTRIBUTION_LINKS',
COMMUNITY_STATISTICS = 'COMMUNITY_STATISTICS',
SEARCH_ADMIN_USERS = 'SEARCH_ADMIN_USERS',
CREATE_CONTRIBUTION_MESSAGE = 'CREATE_CONTRIBUTION_MESSAGE',
// Admin
SEARCH_USERS = 'SEARCH_USERS',
SET_USER_ROLE = 'SET_USER_ROLE',

View File

@ -31,6 +31,7 @@ export const ROLE_USER = new Role('user', [
RIGHTS.SEARCH_ADMIN_USERS,
RIGHTS.LIST_CONTRIBUTION_LINKS,
RIGHTS.COMMUNITY_STATISTICS,
RIGHTS.CREATE_CONTRIBUTION_MESSAGE,
])
export const ROLE_ADMIN = new Role('admin', Object.values(RIGHTS)) // all rights