mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 18:27:19 +00:00
Update permission-service.ts
This commit is contained in:
@@ -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" });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user