Fetch roles in roles settings page (#10001)
## Context Following the addition of the new Roles page, we are now fetching roles from the DB thanks to this PR #9955 ## Test <img width="1136" alt="Screenshot 2025-02-04 at 14 46 21" src="https://github.com/user-attachments/assets/2c55c4d0-ee51-47bb-8113-efce172a9365" /> --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
@ -54,7 +54,7 @@ export class PermissionsService {
|
||||
}
|
||||
|
||||
throw new PermissionsException(
|
||||
`User does not have permission to update this setting: ${setting}`,
|
||||
`User does not have permission to access this setting: ${setting}`,
|
||||
PermissionsExceptionCode.PERMISSION_DENIED,
|
||||
);
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@ import { Relation } from 'typeorm';
|
||||
import { WorkspaceMember } from 'src/engine/core-modules/user/dtos/workspace-member.dto';
|
||||
import { UserWorkspaceRoleEntity } from 'src/engine/metadata-modules/role/user-workspace-role.entity';
|
||||
|
||||
@ObjectType()
|
||||
@ObjectType('Role')
|
||||
export class RoleDTO {
|
||||
@Field({ nullable: false })
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user