fix: 修复是否为管理员判断错误
This commit is contained in:
parent
609c49bced
commit
31f0abbae2
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user