From f7041ca5a5dc8172c345a3fd4985d4c3e6470470 Mon Sep 17 00:00:00 2001 From: xusongfu Date: Tue, 2 Jan 2024 10:35:54 +0800 Subject: [PATCH] fix: Fix network editing Fix check system admin when editing network Closes-Bug: #2047784 Change-Id: I062346555ee7a32268a01be55b63dc3ff6a7e54b --- src/pages/network/containers/Network/actions/Edit.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/network/containers/Network/actions/Edit.jsx b/src/pages/network/containers/Network/actions/Edit.jsx index a819c2e2..947e3a53 100644 --- a/src/pages/network/containers/Network/actions/Edit.jsx +++ b/src/pages/network/containers/Network/actions/Edit.jsx @@ -37,7 +37,7 @@ export class Edit extends ModalAction { static allowed = (item) => { const rootStore = globalRootStore; - if (!this.isSystemAdmin && item.project_id !== rootStore.user.project.id) { + if (!checkSystemAdmin() && item.project_id !== rootStore.user.project.id) { return Promise.resolve(false); } return Promise.resolve(true);