chore: minor changes

This commit is contained in:
Daniel Hougaard
2025-03-03 17:52:39 +04:00
parent 77e1ccc8d7
commit 8fd5fdbc6a
2 changed files with 3 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
import { ForbiddenError, subject } from "@casl/ability";
import { z } from "zod";
import { ActionProjectType, SecretFoldersSchema, SecretImportsSchema, SecretTagsSchema } from "@app/db/schemas";
import { ActionProjectType, SecretFoldersSchema, SecretImportsSchema } from "@app/db/schemas";
import { EventType, UserAgentType } from "@app/ee/services/audit-log/audit-log-types";
import {
ProjectPermissionDynamicSecretActions,

View File

@@ -981,6 +981,8 @@ export const secretV2BridgeServiceFactory = ({
})
);
}
// Else, we do nothing. Because we don't want to filter out the secret, OR throw an error.
// If the user doesn't have access to read the value, in the below map function, we mask the secret value and return the secret with a hidden value.
}
return canDescribeSecret;