getLinkedList() 수정

master
mjkhan21 12 months ago
parent a016818b29
commit 8f73c8651a

@ -75,23 +75,31 @@ class AuthorityControl {
info = this.authorities.getCurrent(); info = this.authorities.getCurrent();
switch (this.linkedList = linked) { switch (this.linkedList = linked) {
case "users": case "users":
if (info && !this.authorities.isImplicit(info)) { if (!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(); 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; break;
case "actions": case "actions":
if (info && !this.authorities.isAdmin(info)) { if (!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(); 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; break;
default: break; default: break;

Loading…
Cancel
Save