feat(rbac): updated role controller to check permissions and batch v2 selectively permission check

This commit is contained in:
Akhil Mohan
2023-09-08 21:22:36 +05:30
parent 988bb4ffb6
commit 43735b8183
4 changed files with 94 additions and 34 deletions
@@ -451,6 +451,7 @@ export const DashboardPage = () => {
await onSecretRollback();
return;
}
console.log(userSec);
// just closing this if save is triggered from drawer
handlePopUpClose("secretDetails");
// encrypt and format the secrets to batch api format
@@ -466,6 +467,7 @@ export const DashboardPage = () => {
reset();
return;
}
console.log(batchedSecret);
try {
await batchSecretOp({
requests: batchedSecret,
@@ -304,6 +304,10 @@ export const SecretInputRow = memo(
(isOverridden ? isAddOnly : shouldBeBlockedInAddOnly)
}
{...field}
onChange={(val) => {
console.log(val);
field.onChange(val);
}}
/>
)}
/>