fix: 【数据源】查看数据源提示没有权限

This commit is contained in:
taojinlong 2024-12-18 15:13:28 +08:00 committed by dataeaseShu
parent 3b5d16e58f
commit 645bc0ddec

View File

@ -87,6 +87,12 @@ public class EngineServer implements EngineApi {
@Override
public boolean supportSetKey() throws Exception {
return !getEngine().getType().equalsIgnoreCase("h2");
List<CoreDeEngine> deEngines = deEngineMapper.selectList(null);
if (CollectionUtils.isEmpty(deEngines)) {
return false;
} else {
return !deEngines.getFirst().getType().equalsIgnoreCase("h2");
}
}
}