将isAdmin方法统一到SecurityUtils

This commit is contained in:
RuoYi
2026-01-05 14:50:37 +08:00
parent da65996e69
commit 1c0562ba18
7 changed files with 18 additions and 15 deletions

View File

@@ -114,11 +114,6 @@ public class SysUser extends BaseEntity
}
public boolean isAdmin()
{
return isAdmin(this.userId);
}
public static boolean isAdmin(Long userId)
{
return UserConstants.isAdmin(userId);
}