mobicloud-core 1.0.289 → 1.0.290

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.
@@ -3074,8 +3074,7 @@
3074
3074
  }
3075
3075
  CustomerUserGeneralComponent.prototype.ngOnInit = function () {
3076
3076
  var _this = this;
3077
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
3078
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3077
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = ((_this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated()) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3079
3078
  this.initializeDataSources();
3080
3079
  };
3081
3080
  CustomerUserGeneralComponent.prototype.initializeDataSources = function () {
@@ -3302,8 +3301,7 @@
3302
3301
  }
3303
3302
  CustomerUserDetailsComponent.prototype.ngOnInit = function () {
3304
3303
  var _this = this;
3305
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
3306
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3304
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = ((_this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated()) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3307
3305
  this.user_store = new ODataStore__default["default"]({
3308
3306
  url: this.cloudDataService.getMobiManagementODataUrl("CustomerUser"),
3309
3307
  withCredentials: true,
@@ -3469,8 +3467,7 @@
3469
3467
  }
3470
3468
  CustomerUserAddressComponent.prototype.ngOnInit = function () {
3471
3469
  var _this = this;
3472
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
3473
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3470
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = ((_this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated()) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3474
3471
  this.user_store = new ODataStore__default["default"]({
3475
3472
  url: this.cloudDataService.getMobiManagementODataUrl("CustomerUser"),
3476
3473
  withCredentials: true,
@@ -3655,8 +3652,7 @@
3655
3652
  CustomerUserImageComponent.prototype.ngOnInit = function () {
3656
3653
  var _this = this;
3657
3654
  var _a;
3658
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.fullEditAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
3659
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = (_this.coreService.isMasterOrganizationUserAuthenticated() || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3655
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { var _a; return _this.fullEditAllowed = ((_this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated()) || (p === null || p === void 0 ? void 0 : p.user_id) == ((_a = _this.user) === null || _a === void 0 ? void 0 : _a.Id)); });
3660
3656
  this.uploadUrl = this.cloudDataService.getMobiManagementODataUrl("customeruser(" + ((_a = this.user) === null || _a === void 0 ? void 0 : _a.Id) + ")/UploadProfileImage");
3661
3657
  };
3662
3658
  CustomerUserImageComponent.prototype.getProfileImageUrl = function () {
@@ -6836,7 +6832,7 @@
6836
6832
  }
6837
6833
  ProjectDescriptionComponent.prototype.ngOnInit = function () {
6838
6834
  var _this = this;
6839
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
6835
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
6840
6836
  this.initializeDataSource();
6841
6837
  };
6842
6838
  ProjectDescriptionComponent.prototype.initializeDataSource = function () {
@@ -6997,7 +6993,7 @@
6997
6993
  }
6998
6994
  ProjectFinanceComponent.prototype.ngOnInit = function () {
6999
6995
  var _this = this;
7000
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
6996
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
7001
6997
  this.initializeDataSource();
7002
6998
  this.createCustomerDataSource();
7003
6999
  };
@@ -7201,7 +7197,7 @@
7201
7197
  }
7202
7198
  ProjectGeneralComponent.prototype.ngOnInit = function () {
7203
7199
  var _this = this;
7204
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
7200
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
7205
7201
  this.initializeDataSource();
7206
7202
  this.createResponsibleDataSource();
7207
7203
  this.createSalesResponsibleDataSource();
@@ -7420,7 +7416,7 @@
7420
7416
  }
7421
7417
  ProjectLocationComponent.prototype.ngOnInit = function () {
7422
7418
  var _this = this;
7423
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
7419
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
7424
7420
  this.initializeDataSource();
7425
7421
  this.createCountryDataSource();
7426
7422
  };
@@ -7638,7 +7634,7 @@
7638
7634
  }
7639
7635
  ProjectTimeComponent.prototype.ngOnInit = function () {
7640
7636
  var _this = this;
7641
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
7637
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
7642
7638
  this.initializeDataSource();
7643
7639
  };
7644
7640
  ProjectTimeComponent.prototype.initializeDataSource = function () {
@@ -7791,7 +7787,7 @@
7791
7787
  }
7792
7788
  ProjectVariantConfigComponent.prototype.ngOnInit = function () {
7793
7789
  var _this = this;
7794
- this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated(); });
7790
+ this.coreService.mobiUserProfileObservable.subscribe(function (p) { return _this.editAllowed = _this.coreService.isMasterOrganizationUserAuthenticated() || _this.coreService.isEmployeeAuthenticated(); });
7795
7791
  this.initializeDataSource();
7796
7792
  this.createSchemaTypeDataSource();
7797
7793
  };