fix: Fix network editing
Fix check system admin when editing network Closes-Bug: #2047784 Change-Id: I062346555ee7a32268a01be55b63dc3ff6a7e54b
This commit is contained in:
parent
4d606d4742
commit
f7041ca5a5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user