diff --git a/apps/api/src/project/service/project.service.ts b/apps/api/src/project/service/project.service.ts index 7e1a1099..d3bde362 100644 --- a/apps/api/src/project/service/project.service.ts +++ b/apps/api/src/project/service/project.service.ts @@ -354,7 +354,7 @@ export class ProjectService { throw new NotFoundException(`Project with id ${projectId} not found`) } - if (project.accessLevel !== 'GLOBAL') { + if (project.accessLevel !== ProjectAccessLevel.GLOBAL) { throw new UnauthorizedException( `User with id ${user.id} does not have the authority in the project with id ${project.id}` )