mirror of
https://github.com/dataease/dataease.git
synced 2026-05-21 04:08:10 +08:00
perf: 自动创建用户设置(xpack)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package io.dataease.constant;
|
||||
|
||||
public class XpackSettingConstants {
|
||||
|
||||
public static final String AUTO_CREATE_USER = "basic.autoCreateUser";
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package io.dataease.utils;
|
||||
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import io.dataease.constant.XpackSettingConstants;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class SystemSettingUtils {
|
||||
|
||||
public static boolean xpackSetting(String pkey) {
|
||||
List<String> xpackSettingList = ListUtil.toList(XpackSettingConstants.AUTO_CREATE_USER);
|
||||
return xpackSettingList.contains(pkey);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user