From 74fdea0b51c72c5cd6b14803d3c2916174cb9be5 Mon Sep 17 00:00:00 2001 From: alan Date: Tue, 17 Sep 2019 15:08:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20KERNEL-1349=20=E4=BF=AE=E5=A4=8D=20?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E6=95=B0=E6=8D=AE=E8=BF=9E=E6=8E=A5=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=9D=A5=E5=9B=9E=E5=88=87=E6=8D=A2=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=B1=A0=E7=8A=B6=E6=80=81=E5=92=8C=E6=95=B0=E6=8D=AE=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E7=AE=A1=E7=90=86=E4=BC=9A=E6=8A=A5=E9=94=99=20?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/app.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/app.service.ts b/src/modules/app.service.ts index adbf831..c01d9dd 100644 --- a/src/modules/app.service.ts +++ b/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); }