#19069: Preventing the owner to be changed when hiding the Own Editor

Work Item: 19069

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-10-06 09:55:22 -07:00
parent 42f12a2ab7
commit 9c3a38236d

View File

@@ -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;
}