@senior-gestao-pessoas/payroll-core 9.3.0-8e3650be-79b5-4803-9eab-ad01b4739d46 → 9.3.0-f0e95122-ee14-4fff-b114-c382ed3407eb

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.
@@ -9467,9 +9467,18 @@
9467
9467
  visible: _this.isEditMode,
9468
9468
  label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
9469
9469
  command: function () {
9470
- rowData["index"] = key;
9471
- _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9472
- _this.visible = true;
9470
+ if (_this.isAllowToViewHistorical && rowData) {
9471
+ rowData["index"] = key;
9472
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9473
+ _this.visible = true;
9474
+ }
9475
+ else {
9476
+ _this.messageService.add({
9477
+ severity: "error",
9478
+ summary: _this.translateService.instant("hcm.payroll.error"),
9479
+ detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9480
+ });
9481
+ }
9473
9482
  },
9474
9483
  },
9475
9484
  {
@@ -9717,14 +9726,21 @@
9717
9726
  };
9718
9727
  Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToDeleteHistorical", {
9719
9728
  get: function () {
9720
- return (this.permission["excluir"]);
9729
+ return (this.permission["Excluir"]);
9721
9730
  },
9722
9731
  enumerable: true,
9723
9732
  configurable: true
9724
9733
  });
9725
9734
  Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToEditHistorical", {
9726
9735
  get: function () {
9727
- return (this.permission["editar"]);
9736
+ return (this.permission["Editar"]);
9737
+ },
9738
+ enumerable: true,
9739
+ configurable: true
9740
+ });
9741
+ Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
9742
+ get: function () {
9743
+ return (this.permission["Visualizar"]);
9728
9744
  },
9729
9745
  enumerable: true,
9730
9746
  configurable: true
@@ -10613,21 +10629,21 @@
10613
10629
  };
10614
10630
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
10615
10631
  get: function () {
10616
- return (this.permission["incluir"]);
10632
+ return (this.permission["Incluir"]);
10617
10633
  },
10618
10634
  enumerable: true,
10619
10635
  configurable: true
10620
10636
  });
10621
10637
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
10622
10638
  get: function () {
10623
- return (this.permission["excluir"]);
10639
+ return (this.permission["Excluir"]);
10624
10640
  },
10625
10641
  enumerable: true,
10626
10642
  configurable: true
10627
10643
  });
10628
10644
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToViewHistorical", {
10629
10645
  get: function () {
10630
- return (this.permission["visaulizar"]);
10646
+ return (this.permission["Visualizar"]);
10631
10647
  },
10632
10648
  enumerable: true,
10633
10649
  configurable: true