Commit 06b90c04 authored by nie'hong's avatar nie'hong

限制非平台管理员和统计管理员账号登录

parent 0a79f91a
......@@ -187,7 +187,7 @@ public class LoginController extends BaseController {
// 用户需要拥有“统计管理员”或“平台管理员”角色才能登录
List<String> roleAliasList = roles.stream().map(Role::getAlias).collect(Collectors.toList());
if (!roleAliasList.contains(ROLE_TJGLY) || roleAliasList.contains(ROLE_XTGLY)) {
if (!roleAliasList.contains(ROLE_TJGLY) && !roleAliasList.contains(ROLE_XTGLY)) {
resultMap.put("resultCode", "400");
resultMap.put("message", "您登录的账号既不是平台用户账号也不是统计用户账号,不能查看大屏");
return resultMap;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment