mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 22:51:53 +00:00
feat: removed secret path check in glob
This commit is contained in:
+3
-1
@@ -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("/"))
|
||||
|
||||
Reference in New Issue
Block a user