mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Merge branch 'misc/terraform-project-group-prereq' of https://github.com/Infisical/infisical into misc/terraform-project-group-prereq
This commit is contained in:
@@ -95,9 +95,9 @@ export const groupProjectServiceFactory = ({
|
|||||||
project.id
|
project.id
|
||||||
);
|
);
|
||||||
|
|
||||||
const hasRequiredPriviledges = isAtLeastAsPrivileged(permission, rolePermission);
|
const hasRequiredPrivileges = isAtLeastAsPrivileged(permission, rolePermission);
|
||||||
|
|
||||||
if (!hasRequiredPriviledges) {
|
if (!hasRequiredPrivileges) {
|
||||||
throw new ForbiddenRequestError({ message: "Failed to assign group to a more privileged role" });
|
throw new ForbiddenRequestError({ message: "Failed to assign group to a more privileged role" });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user