Update permission-service.ts

This commit is contained in:
Daniel Hougaard
2024-03-12 22:38:19 +01:00
parent 9a724db6ab
commit 8573263379

View File

@@ -180,10 +180,6 @@ export const permissionServiceFactory = ({
throw new BadRequestError({ name: "Custom permission not found" });
}
if (membership.role === ProjectMembershipRole.Custom && !membership.permissions) {
throw new BadRequestError({ name: "Custom permission not found" });
}
if (membership.orgId !== userOrgId) {
throw new UnauthorizedError({ name: "You are not a member of this organization" });
}