feat: removed secret path check in glob

This commit is contained in:
=
2025-01-29 17:50:02 +05:30
parent 61388753cf
commit cffcb28bc9
2 changed files with 4 additions and 5 deletions
@@ -84,7 +84,9 @@ const ConditionSchema = z
.refine(
(val) =>
val
.filter((el) => el.lhs === "secretPath")
.filter(
(el) => el.lhs === "secretPath" && el.operator !== PermissionConditionOperators.$GLOB
)
.every((el) =>
el.operator === PermissionConditionOperators.$IN
? el.rhs.split(",").every((i) => i.trim().startsWith("/"))