Minor alteration to previous contribution

This commit is contained in:
Suha Can
2011-02-03 11:01:45 -08:00
parent 86c11ada8e
commit b14d95778b
2 changed files with 4 additions and 7 deletions

View File

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