feat: resolved additional privilege not taking priority and dummy column miscalculation

This commit is contained in:
=
2024-10-18 00:33:37 +05:30
parent 6158b8a91d
commit 700c5409bf
5 changed files with 60 additions and 48 deletions
@@ -67,7 +67,7 @@ export const permissionServiceFactory = ({
throw new NotFoundError({ name: "OrgRoleInvalid", message: "Organization role not found" });
}
})
.reduce((curr, prev) => prev.concat(curr), []);
.reduce((prev, curr) => prev.concat(curr), []);
return createMongoAbility<OrgPermissionSet>(rules, {
conditionsMatcher
@@ -98,7 +98,7 @@ export const permissionServiceFactory = ({
});
}
})
.reduce((curr, prev) => prev.concat(curr), []);
.reduce((prev, curr) => prev.concat(curr), []);
return rules;
};
@@ -394,7 +394,7 @@ export const secretV2BridgeServiceFactory = ({
subject(ProjectPermissionSub.Secrets, {
environment,
secretPath,
secretName: inputSecret.secretName,
secretName: inputSecret.newSecretName,
secretTags: tags?.map((el) => el.slug)
})
);