|
|
|
|
@ -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;
|
|
|
|
|
|