补充上次提交.
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);
|
||||
|
||||
@@ -97,7 +97,7 @@ public class UserController extends BaseController{
|
||||
return form(user, model);
|
||||
}*/
|
||||
if (!"true".equals(checkLoginName(user.getOldLoginId(), user.getLoginId()))){
|
||||
addMessage(model,"error", "save_failed");
|
||||
addMessage(redirectAttributes,"error", "save_failed");
|
||||
return form(user, model);
|
||||
}
|
||||
// 角色数据有效性验证,过滤不在授权内的角色
|
||||
|
||||
Reference in New Issue
Block a user