diff --git a/backend/src/auth/ROLES.ts b/backend/src/auth/ROLES.ts index 58b127626..75d31d149 100644 --- a/backend/src/auth/ROLES.ts +++ b/backend/src/auth/ROLES.ts @@ -21,7 +21,7 @@ export const ROLE_ADMIN = new Role(RoleNames.ADMIN, [ ...ADMIN_RIGHTS, ]) -export const ROLE_DLT_CONNECTOR = new Role(RoleNames.DLT_CONNECTOR_ROLE, DLT_CONNECTOR_RIGHTS) +export const ROLE_DLT_CONNECTOR = new Role(RoleNames.DLT_CONNECTOR, DLT_CONNECTOR_RIGHTS) // TODO from database export const ROLES = [ROLE_UNAUTHORIZED, ROLE_USER, ROLE_MODERATOR, ROLE_ADMIN] diff --git a/backend/src/graphql/enum/RoleNames.ts b/backend/src/graphql/enum/RoleNames.ts index 431154524..1eb8f22c3 100644 --- a/backend/src/graphql/enum/RoleNames.ts +++ b/backend/src/graphql/enum/RoleNames.ts @@ -5,7 +5,7 @@ export enum RoleNames { USER = 'USER', MODERATOR = 'MODERATOR', ADMIN = 'ADMIN', - DLT_CONNECTOR_ROLE = 'DLT_CONNECTOR_ROLE', + DLT_CONNECTOR = 'DLT_CONNECTOR_ROLE', } registerEnumType(RoleNames, {