mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
- Fixing 16263: Cannot Add Admin user to the Administrators role
--HG-- branch : dev
This commit is contained in:
@@ -111,8 +111,12 @@ namespace Orchard.Users.Controllers {
|
|||||||
User = Services.ContentManager.UpdateEditorModel<User>(id, this)
|
User = Services.ContentManager.UpdateEditorModel<User>(id, this)
|
||||||
};
|
};
|
||||||
|
|
||||||
// apply additional model properties that were posted on form
|
TryUpdateModel(model);
|
||||||
UpdateModel(model);
|
|
||||||
|
if (!ModelState.IsValid) {
|
||||||
|
Services.TransactionManager.Cancel();
|
||||||
|
return View(model);
|
||||||
|
}
|
||||||
|
|
||||||
model.User.Item.NormalizedUserName = model.UserName.ToLower();
|
model.User.Item.NormalizedUserName = model.UserName.ToLower();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user