mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 17:40:44 +00:00
fix(groups): unique names, requested changes
This commit is contained in:
@@ -80,10 +80,8 @@ export const groupProjectServiceFactory = ({
|
||||
});
|
||||
ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionActions.Create, ProjectPermissionSub.Groups);
|
||||
|
||||
const isUuid = isUuidV4(groupIdOrName);
|
||||
|
||||
let group: TGroups | null = null;
|
||||
if (isUuid) {
|
||||
if (isUuidV4(groupIdOrName)) {
|
||||
group = await groupDAL.findOne({ orgId: actorOrgId, id: groupIdOrName });
|
||||
}
|
||||
if (!group) {
|
||||
|
||||
Reference in New Issue
Block a user