Merge branch 'fix'
This commit is contained in:
@@ -63,4 +63,5 @@ class FieldType
|
||||
public const WYSIWYG = 'wysiwyg';
|
||||
public const JSON_ARRAY = 'jsonArray';
|
||||
public const JSON_OBJECT = 'jsonObject';
|
||||
public const PASSWORD = 'password';
|
||||
}
|
||||
|
||||
@@ -76,6 +76,10 @@ class Applier
|
||||
if ($this->metadataProvider->isFieldOrderDisabled($this->entityType, $orderBy)) {
|
||||
throw new Forbidden("Order by the field '$orderBy' is disabled.");
|
||||
}
|
||||
|
||||
if ($this->metadataProvider->getFieldType($this->entityType, $orderBy) === FieldType::PASSWORD) {
|
||||
throw new Forbidden("Order by field '$orderBy' is not allowed.");
|
||||
}
|
||||
}
|
||||
|
||||
if ($orderBy === null) {
|
||||
|
||||
@@ -52,7 +52,8 @@
|
||||
"directAccessDisabled": true,
|
||||
"fieldManagerParamList": [
|
||||
"tooltipText"
|
||||
]
|
||||
],
|
||||
"orderDisabled": true
|
||||
},
|
||||
"passwordConfirm": {
|
||||
"type": "password",
|
||||
@@ -88,7 +89,8 @@
|
||||
"tooltipText"
|
||||
],
|
||||
"copyToClipboard": true,
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
"dynamicLogicVisibleDisabled": true,
|
||||
"orderDisabled": true
|
||||
},
|
||||
"secretKey": {
|
||||
"type": "varchar",
|
||||
|
||||
Reference in New Issue
Block a user