|
|
@@ -62,10 +62,10 @@ public class AdminSystemController extends BaseApiController {
|
|
|
@RequestMapping(value = "/updateAdminInfo", method = RequestMethod.POST)
|
|
|
public Result updateAdminInfo(@Valid InputAdmin admin, String pwd, BindingResult bindingResult) {
|
|
|
Result res = new Result();
|
|
|
- if (TokenManager.hasRole(AFTConstants.SUPERADMIN)) {
|
|
|
+ /*if (TokenManager.hasRole(AFTConstants.SUPERADMIN)) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "超级管理员"));
|
|
|
return res;
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
res.getError().add(buildErrorByMsg(bindingResult.getFieldError().getDefaultMessage(),
|