补充上次提交.
This commit is contained in:
@@ -143,7 +143,7 @@ public class RoleController extends BaseController {
|
||||
public String saveOrUpdate(SysRole role, Model model, RedirectAttributes redirectAttributes) {
|
||||
|
||||
if (!"true".equals(checkName(role.getOldName(), role.getName()))){
|
||||
addMessage(model,"error", "save_failed");
|
||||
addMessage(redirectAttributes,"error", "save_failed");
|
||||
return form(role, model);
|
||||
}
|
||||
roleService.saveOrUpdate(role);
|
||||
|
||||
Reference in New Issue
Block a user