diff --git a/modules/worker/front/time-control/index.js b/modules/worker/front/time-control/index.js
index 85ddcedfe..90ec33293 100644
--- a/modules/worker/front/time-control/index.js
+++ b/modules/worker/front/time-control/index.js
@@ -151,6 +151,7 @@ class Controller extends Section {
}
getAbsences() {
+ if (!this.worker.hasWorkerCenter) return;
const fullYear = this.started.getFullYear();
let params = {
workerFk: this.$params.id,
diff --git a/modules/worker/front/time-control/index.spec.js b/modules/worker/front/time-control/index.spec.js
index 94f9d3d48..0132f50fe 100644
--- a/modules/worker/front/time-control/index.spec.js
+++ b/modules/worker/front/time-control/index.spec.js
@@ -16,6 +16,10 @@ describe('Component vnWorkerTimeControl', () => {
$scope = $rootScope.$new();
$element = angular.element('');
controller = $componentController('vnWorkerTimeControl', {$element, $scope});
+ controller.worker = {
+ hasWorkerCenter: true
+
+ };
}));
describe('date() setter', () => {