|
@@ -74,7 +74,7 @@ public class SystemConstant {
|
|
|
public static final String ORG_SPLIT = "/";
|
|
|
public static final String THREAD_POOL_CORE_SIZE = "thread.pool.core.size";
|
|
|
public static final String CUSTOM_THREAD_POOL_CORE_SIZE = "custom.thread.pool.core.size";
|
|
|
-// public static final String JKSERVER_SINGLE = "jkserver.single";
|
|
|
+ // public static final String JKSERVER_SINGLE = "jkserver.single";
|
|
|
public static final String CLOUDMARK_HOST_URL = "cloudmark.host.url";
|
|
|
public static final String SYS_CONFIG_KEY_CHARSETS = "sys.txt.charset";
|
|
|
public final static String SCHOOL_ID = "schoolId";
|
|
@@ -359,7 +359,7 @@ public class SystemConstant {
|
|
|
if (user == null) {
|
|
|
throw new JkServerException("获取用户信息失败");
|
|
|
}
|
|
|
- if (user.getRole() != UserRole.SUPER_ADMIN) {
|
|
|
+ if (!user.getRole().equals(UserRole.SUPER_ADMIN)) {
|
|
|
throw new JkServerException("只允许超级管理员操作");
|
|
|
}
|
|
|
}
|