将isAdmin方法统一到SecurityUtils

This commit is contained in:
RuoYi
2026-01-05 15:10:16 +08:00
parent 14063cd6ed
commit 0398aa0333
7 changed files with 19 additions and 16 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);
}