@senior-gestao-relacionamento/angular-components 1.4.0 → 1.5.0

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.
@@ -884,7 +884,7 @@
884
884
  CurrentCollaboratorService.prototype.validate = function () {
885
885
  var _this = this;
886
886
  this.call(false).subscribe(function (collaborator) {
887
- if (collaborator.active === false && !_this.storageService.isUserAdmin()) {
887
+ if (collaborator.active === false) {
888
888
  _this.redirect('collaborator-inactive');
889
889
  }
890
890
  });
@@ -916,7 +916,7 @@
916
916
  _this.http.get('crmx_collaborator/foundation/queries/getCurrentCollaborator')
917
917
  .pipe(operators.takeUntil(_this.ngUnsubscribe), operators.catchError(function (err) {
918
918
  var statusCode = 404;
919
- if (err.status === statusCode && !_this.storageService.isUserAdmin()) {
919
+ if (err.status === statusCode) {
920
920
  _this.redirect('collaborator-not-found');
921
921
  }
922
922
  ;
@@ -932,7 +932,7 @@
932
932
  });
933
933
  };
934
934
  CurrentCollaboratorService.prototype.redirect = function (page) {
935
- location.href = this.storageService.getBaseUrl() + '/gestao-relacionamento/crmx_collaborator/foundation/#/' + page;
935
+ location.href = this.storageService.getBaseUrl() + "/gestao-relacionamento/crmx_collaborator/foundation/#/" + page;
936
936
  };
937
937
  CurrentCollaboratorService.prototype.removeCircularReferences = function (obj) {
938
938
  var seen = new WeakSet();
@@ -1392,7 +1392,7 @@
1392
1392
  if (Array.isArray(obj)) {
1393
1393
  obj.forEach(function (item) { return resolve(item, rootObj); });
1394
1394
  }
1395
- else if (obj !== null && typeof obj === 'object') {
1395
+ if (obj !== null && typeof obj === 'object') {
1396
1396
  Object.keys(obj).forEach(function (key) {
1397
1397
  if (key === '$ref' && obj[key]) {
1398
1398
  var refPath = obj[key]; // Caminho da referência