mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 12:38:36 +00:00
fix: make the conditions optional in casl check
This commit is contained in:
@@ -71,8 +71,12 @@ export function createEventStreamClient(redis: Redis, options: IEventStreamClien
|
||||
action: "subscribe",
|
||||
conditions: {
|
||||
eventType: r.event,
|
||||
secretPath: r.conditions?.secretPath ?? "/",
|
||||
environment: r.conditions?.environmentSlug
|
||||
...(r.conditions
|
||||
? {
|
||||
secretPath: r.conditions?.secretPath,
|
||||
environment: r.conditions?.environmentSlug
|
||||
}
|
||||
: {})
|
||||
}
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user