mirror of
https://gitee.com/y_project/RuoYi-Vue.git
synced 2026-01-30 23:16:36 +08:00
将isAdmin方法统一到SecurityUtils
This commit is contained in:
@ -114,6 +114,16 @@ public class SecurityUtils
|
||||
return passwordEncoder.matches(rawPassword, encodedPassword);
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否为管理员
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
public static boolean isAdmin()
|
||||
{
|
||||
return isAdmin(getUserId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否为管理员
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user