mirror of
https://github.com/directus/directus.git
synced 2026-01-25 22:18:25 -05:00
Fix dynamic variables not working anymore in UUID filter (#9180)
* Fix $CURRENT_USER not working anymore in UUID filter * $Handle CURRENT_ROLE too
This commit is contained in:
@@ -112,7 +112,7 @@ export default defineComponent({
|
||||
case 'float':
|
||||
return '[+-]?[0-9]+\\.?[0-9]*';
|
||||
case 'uuid':
|
||||
return '[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}';
|
||||
return '\\$CURRENT_USER|\\$CURRENT_ROLE|[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user