taxtank-core 0.31.15 → 0.31.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10300,9 +10300,6 @@ let RestService$1 = class RestService extends DataService {
10300
10300
  */
10301
10301
  this.disabledMethods = [];
10302
10302
  this.roles = [];
10303
- this.eventDispatcherService.on2(User.getEventName('get')).subscribe((data) => {
10304
- this.user = data[0];
10305
- });
10306
10303
  // @TODO Alex remove, bad idea to call empty method overrided in child (because it will be called with parent context)
10307
10304
  this.listenEvents();
10308
10305
  }
@@ -10338,7 +10335,7 @@ let RestService$1 = class RestService extends DataService {
10338
10335
  }
10339
10336
  get(path = this.apiUrl) {
10340
10337
  if (!this.cache) {
10341
- (!this.user || this.user.hasRoles(this.roles)) ? this.fetch(path).pipe(first$1()).subscribe() : this.setCache([], true);
10338
+ this.fetch(path).pipe(first$1()).subscribe();
10342
10339
  }
10343
10340
  return this.cacheSubject.asObservable();
10344
10341
  }
@@ -11807,9 +11804,6 @@ class RestService {
11807
11804
  // subject for service cache
11808
11805
  this.cacheSubject = new ReplaySubject(1);
11809
11806
  this.roles = [];
11810
- this.eventDispatcherService.on2(User.getEventName('get')).subscribe((data) => {
11811
- this.user = data[0];
11812
- });
11813
11807
  this.listenEvents();
11814
11808
  }
11815
11809
  /**
@@ -11830,7 +11824,7 @@ class RestService {
11830
11824
  */
11831
11825
  get() {
11832
11826
  if (!this.cache) {
11833
- (!this.user || this.user.hasRoles(this.roles)) ? this.fetch().pipe(first$1()).subscribe() : this.setCache([], true);
11827
+ this.fetch().pipe(first$1()).subscribe();
11834
11828
  }
11835
11829
  return this.cacheSubject.asObservable();
11836
11830
  }