fix: Fix network editing

Fix check system admin when editing network

Closes-Bug: #2047784
Change-Id: I062346555ee7a32268a01be55b63dc3ff6a7e54b
This commit is contained in:
xusongfu 2024-01-02 10:35:54 +08:00
parent 4d606d4742
commit f7041ca5a5

View File

@ -37,7 +37,7 @@ export class Edit extends ModalAction {
static allowed = (item) => { static allowed = (item) => {
const rootStore = globalRootStore; 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(false);
} }
return Promise.resolve(true); return Promise.resolve(true);