mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 04:19:04 +08:00
Minor alteration to previous contribution
This commit is contained in:
@@ -79,10 +79,8 @@ namespace Orchard.Roles.Controllers {
|
||||
UpdateModel(viewModel);
|
||||
|
||||
//check if the role name already exists
|
||||
if (!_roleService.VerifyRoleUnicity(viewModel.Name))
|
||||
{
|
||||
Services.Notifier.Error(T("Creating Role failed: {0}", "Role with same name already exists"));
|
||||
|
||||
if (!_roleService.VerifyRoleUnicity(viewModel.Name)) {
|
||||
Services.Notifier.Error(T("Creating Role {0} failed: Role with same name already exists", viewModel.Name));
|
||||
return RedirectToAction("Create");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user