Update permission-service.ts

This commit is contained in:
Daniel Hougaard
2024-03-17 18:49:30 +01:00
parent 9a724db6ab
commit 8573263379
@@ -180,10 +180,6 @@ export const permissionServiceFactory = ({
throw new BadRequestError({ name: "Custom permission not found" }); 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) { if (membership.orgId !== userOrgId) {
throw new UnauthorizedError({ name: "You are not a member of this organization" }); throw new UnauthorizedError({ name: "You are not a member of this organization" });
} }