}
setFilterOrgs(): Promise<number[]> {
- const org = this.contextOrgId || this.auth.user().ws_ou();
+ const org = this._contextOrgId || this.auth.user().ws_ou();
const contextOrgIds = this.org.ancestors(org, true);
this.filterOrgsApplied = true;
}
const orgsFromCache = this.loc.filterOrgsCache[this.permFilter];
- if (orgsFromCache) {
+ if (orgsFromCache && !this._contextOrgId) {
+ // if we're using contextOrgId, it may well change, so
+ // don't use the cache
return Promise.resolve(this.filterOrgs = orgsFromCache);
}