mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
fix: 【数据源】查看数据源提示没有权限
This commit is contained in:
parent
3b5d16e58f
commit
645bc0ddec
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user