Browse Source

Merge pull request #45 in DEC/decision-webui-dcm from ~ALAN/decision-webui-dcm:feature/10.0 to feature/10.0

* commit '74fdea0b51c72c5cd6b14803d3c2916174cb9be5':
  fix: KERNEL-1349 修复 选中数据连接时,来回切换连接池状态和数据连接管理会报错 的问题
qufenxi
alan 5 years ago
parent
commit
fbca4797bd
  1. 2
      src/modules/app.service.ts

2
src/modules/app.service.ts

@ -79,7 +79,7 @@ export function resolveUrlInfo (url: string) {
}
export function connectionCanEdit(connection: Connection) {
if (connection.privilegeDetailBeanList) {
if (connection && connection.privilegeDetailBeanList) {
// privilegeType === 4 代表编辑权限,privilegeValue === 2 代表有权限
return connection.privilegeDetailBeanList.some(item => item.privilegeType === 4 && item.privilegeValue === 2);
}

Loading…
Cancel
Save