mirror of
https://github.com/dataease/dataease.git
synced 2026-05-21 04:08:10 +08:00
perf: 企业版许可限制机制
This commit is contained in:
@@ -3,6 +3,7 @@ package io.dataease.constant;
|
||||
public class CacheConstant {
|
||||
public static class UserCacheConstant {
|
||||
public static final String USER_COUNT_CACHE = "user_count";
|
||||
public static final String USER_ECHELON_CACHE = "user_echelon";
|
||||
public static final String LOGIN_USER_CACHE = "login_user_cache";
|
||||
public static final String USER_ROLES_CACHE = "user_roles";
|
||||
public static final String USER_BUSI_PERS_CACHE = "user_busi_pers";
|
||||
|
||||
@@ -29,7 +29,7 @@ public class AuthUtils {
|
||||
}
|
||||
|
||||
public static boolean isSysAdmin(Long userId) {
|
||||
return userId == SYS_ADMIN_UID;
|
||||
return userId.equals(SYS_ADMIN_UID);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user