mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 04:29:10 +00:00
feat: removed unused casl mapper
This commit is contained in:
@@ -60,17 +60,6 @@ export type SecretSubjectFields = {
|
|||||||
secretTags: string[];
|
secretTags: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
export const CaslSecretsV2SubjectKnexMapper = (field: string) => {
|
|
||||||
switch (field) {
|
|
||||||
case "secretName":
|
|
||||||
return `${TableName.SecretV2}.key`;
|
|
||||||
case "secretTags":
|
|
||||||
return `${TableName.SecretTag}.slug`;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
export type SecretFolderSubjectFields = {
|
export type SecretFolderSubjectFields = {
|
||||||
environment: string;
|
environment: string;
|
||||||
secretPath: string;
|
secretPath: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user