From 8f73c8651a128a309b79fc2bc136f3ece78efbb8 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 24 Dec 2024 09:30:59 +0900 Subject: [PATCH] =?UTF-8?q?getLinkedList()=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/resources/js/base/authority.js | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/resources/js/base/authority.js b/src/main/webapp/resources/js/base/authority.js index dbf2607..b1e1eac 100644 --- a/src/main/webapp/resources/js/base/authority.js +++ b/src/main/webapp/resources/js/base/authority.js @@ -75,23 +75,31 @@ class AuthorityControl { info = this.authorities.getCurrent(); switch (this.linkedList = linked) { case "users": - if (info && !this.authorities.isImplicit(info)) { - if (this.users.query.authIDs == info.AUTH_ID) return; - this.users.query.authIDs = info.AUTH_ID; - this.users.load(); - } else { - this.users.query.authIDs = info.AUTH_ID; + if (!info) this.users.dataset.clear(); + else { + if (!this.authorities.isImplicit(info)) { + if (this.users.query.authIDs == info.AUTH_ID) return; + this.users.query.authIDs = info.AUTH_ID; + this.users.load(); + } else { + this.users.query.authIDs = info.AUTH_ID; + this.users.dataset.clear(); + } } break; case "actions": - if (info && !this.authorities.isAdmin(info)) { - if (this.actions.query.authIDs == info.AUTH_ID) return; - this.actions.query.authIDs = info.AUTH_ID; - this.actions.load(); - } else { - this.actions.query.authIDs = info.AUTH_ID; + if (!info) this.actions.dataset.clear(); + else { + if (!this.authorities.isAdmin(info)) { + if (this.actions.query.authIDs == info.AUTH_ID) return; + this.actions.query.authIDs = info.AUTH_ID; + this.actions.load(); + } else { + this.actions.query.authIDs = info.AUTH_ID; + this.actions.dataset.clear(); + } } break; default: break;