Skip to content

Commit

Permalink
Update project.service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark-Kernel authored and rajdip-b committed Jul 29, 2024
1 parent a08ad65 commit 618e023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/project/service/project.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
)
Expand Down

0 comments on commit 618e023

Please sign in to comment.