Do not allow editing read-only properties (#17915)
This commit is contained in:
@@ -458,7 +458,8 @@ internal abstract class ContentEditingServiceBase<TContent, TContentType, TConte
|
||||
IDataValueEditor dataValueEditor = dataEditor.GetValueEditor();
|
||||
if (dataValueEditor.IsReadOnly)
|
||||
{
|
||||
return null;
|
||||
// read-only property editor - get and return the current value
|
||||
return content.GetValue(propertyType.Alias, culture, segment);
|
||||
}
|
||||
|
||||
IDataType? dataType = await _dataTypeService.GetAsync(propertyType.DataTypeKey);
|
||||
|
||||
Reference in New Issue
Block a user