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)
|
||||
};
|
||||
|
||||
// apply additional model properties that were posted on form
|
||||
UpdateModel(model);
|
||||
TryUpdateModel(model);
|
||||
|
||||
if (!ModelState.IsValid) {
|
||||
Services.TransactionManager.Cancel();
|
||||
return View(model);
|
||||
}
|
||||
|
||||
model.User.Item.NormalizedUserName = model.UserName.ToLower();
|
||||
|
||||
|
Reference in New Issue
Block a user