mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-10 19:00:53 +08:00
refactor: 优化通知公告部分代码
This commit is contained in:
@@ -178,7 +178,7 @@ public class UserContextHolder {
|
||||
*
|
||||
* @return 是否为管理员
|
||||
*/
|
||||
public static Boolean isAdmin() {
|
||||
public static boolean isAdmin() {
|
||||
StpUtil.checkLogin();
|
||||
return getContext().isAdmin();
|
||||
}
|
||||
|
Reference in New Issue
Block a user