提交 31f0abba 编写于 作者: 查尔斯-BUG万象集's avatar 查尔斯-BUG万象集

fix: 修复是否为管理员判断错误

上级 609c49bc
...@@ -98,9 +98,9 @@ public class LoginUser implements Serializable { ...@@ -98,9 +98,9 @@ public class LoginUser implements Serializable {
* @return true:是,false:否 * @return true:是,false:否
*/ */
public boolean isAdmin() { public boolean isAdmin() {
if (CollUtil.isEmpty(roles)) { if (CollUtil.isEmpty(roleCodes)) {
return false; return false;
} }
return roles.contains(SysConsts.ADMIN_ROLE_CODE); return roleCodes.contains(SysConsts.ADMIN_ROLE_CODE);
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册