|
|
@@ -116,13 +116,20 @@ public class AuthenticationController {
|
|
|
} catch (UnsupportedEncodingException e) {
|
|
|
throw new IllegalArgumentException("URL编码错误!");
|
|
|
}
|
|
|
- if (user.getUserUU().equals(user.getEnterprise().getEnAdminuu()) || user.isSys()) {
|
|
|
+ if (!StringUtils.isEmpty(user.getEnterprise())) {
|
|
|
+ if (user.getUserUU().equals(user.getEnterprise().getEnAdminuu()) || user.isSys()) {
|
|
|
+ ModelMap map = new ModelMap();
|
|
|
+ map.put("status","sucess");
|
|
|
+ map.put("msg","该用户为管理员");
|
|
|
+ return map;
|
|
|
+ } else {
|
|
|
+ return userService.anthority(user,currUrl);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
ModelMap map = new ModelMap();
|
|
|
map.put("status","sucess");
|
|
|
- map.put("msg","该用户为管理员");
|
|
|
+ map.put("msg","个人用户");
|
|
|
return map;
|
|
|
- } else {
|
|
|
- return userService.anthority(user,currUrl);
|
|
|
}
|
|
|
}
|
|
|
|