mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19069: Preventing the owner to be changed when hiding the Own Editor
Work Item: 19069 --HG-- branch : 1.x
This commit is contained in:
@@ -42,7 +42,9 @@ namespace Orchard.Core.Common.OwnerEditor {
|
||||
|
||||
var settings = part.TypePartDefinition.Settings.GetModel<OwnerEditorSettings>();
|
||||
if (!settings.ShowOwnerEditor) {
|
||||
part.Owner = currentUser;
|
||||
if (part.Owner == null) {
|
||||
part.Owner = currentUser;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user