diff --git a/modules/account/front/privileges/index.js b/modules/account/front/privileges/index.js index 017d878de..f69428666 100644 --- a/modules/account/front/privileges/index.js +++ b/modules/account/front/privileges/index.js @@ -10,10 +10,6 @@ export default class Controller extends Section { this._user = value; if (!value) return; } - - get isHr() { - return this.aclService.hasAny(['hr']); - } } ngModule.component('vnUserPrivileges', { diff --git a/modules/worker/front/calendar/index.js b/modules/worker/front/calendar/index.js index a492e8306..a52ecd7da 100644 --- a/modules/worker/front/calendar/index.js +++ b/modules/worker/front/calendar/index.js @@ -91,12 +91,10 @@ class Controller extends Section { } getActiveContract() { - this.$http.get(`Workers/${this.worker.id}/activeContract`).then(res => { - if (res.data) { - this.businessId = res.data.businessFk; - console.log(this.businessId); - } - }); + this.$http.get(`Workers/${this.worker.id}/activeContract`) + .then(res => { + if (res.data) this.businessId = res.data.businessFk; + }); } getContractHolidays() {