mirror of
https://github.com/directus/directus.git
synced 2026-01-25 12:48:07 -05:00
* Move permissions extraction to accountability
* Fix permissions retrieval for public user
* Fetch user / role context in permissions middleware
* Remove unnecessary parseFilter
* Rename schemaCache to systemCache
* Add permissions caching
* Add system cache invalidation on permission changes
* Improve caching perf by reducing scope
* Add note to docs
* Clarify compatibility with conditional fields/filters
* Fix lint warning
* Allow nested vars in system-filter-input
* Add custom getter function that resolves arrays
* Add is-dynamic-variable util
* Export new util
* Cleanup parse filter
* Fix build
* Move debounce up to use-items
* Remove unused prop
* 🧹
* Fix input pattern usage w/ vars
* Remove debounce from search-input, increase throttle
6 lines
232 B
TypeScript
6 lines
232 B
TypeScript
const dynamicVariablePrefixes = ['$NOW', '$CURRENT_USER', '$CURRENT_ROLE'];
|
|
|
|
export function isDynamicVariable(value: any) {
|
|
return typeof value === 'string' && dynamicVariablePrefixes.some((prefix) => value.startsWith(prefix));
|
|
}
|