将isAdmin方法统一到SecurityUtils

This commit is contained in:
RuoYi
2026-01-04 16:07:06 +08:00
parent 6a35245aaf
commit 8df58e7512
7 changed files with 18 additions and 15 deletions

View File

@ -114,6 +114,16 @@ public class SecurityUtils
return passwordEncoder.matches(rawPassword, encodedPassword);
}
/**
* 是否为管理员
*
* @return 结果
*/
public static boolean isAdmin()
{
return isAdmin(getUserId());
}
/**
* 是否为管理员
*