mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Don't show regex on permissions configuration (#13511)
It's only valid for validation. This makes sure it's only configurable for validation.
This commit is contained in:
@@ -332,7 +332,7 @@ function getCompareOptions(name: string) {
|
||||
type = fieldInfo?.type || 'unknown';
|
||||
}
|
||||
|
||||
return getFilterOperatorsForType(type, { includeValidation: true }).map((type) => ({
|
||||
return getFilterOperatorsForType(type, { includeValidation: props.includeValidation }).map((type) => ({
|
||||
text: t(`operators.${type}`),
|
||||
value: `_${type}`,
|
||||
}));
|
||||
|
||||
@@ -138,7 +138,7 @@ function addNode(key: string) {
|
||||
} else {
|
||||
type = field?.type || 'unknown';
|
||||
}
|
||||
let filterOperators = getFilterOperatorsForType(type);
|
||||
let filterOperators = getFilterOperatorsForType(type, { includeValidation: props.includeValidation });
|
||||
const operator = field?.meta?.options?.choices && filterOperators.includes('eq') ? 'eq' : filterOperators[0];
|
||||
const node = set({}, key, { ['_' + operator]: null });
|
||||
innerValue.value = innerValue.value.concat(node);
|
||||
|
||||
Reference in New Issue
Block a user