mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-14 07:01:38 +08:00
fix: 修复是否为管理员判断错误
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user