diff --git a/modules/worker/back/methods/worker/isSubordinate.js b/modules/worker/back/methods/worker/isSubordinate.js index a85484668..18c7df17e 100644 --- a/modules/worker/back/methods/worker/isSubordinate.js +++ b/modules/worker/back/methods/worker/isSubordinate.js @@ -29,7 +29,7 @@ module.exports = Self => { const mySubordinates = await Self.mySubordinates(ctx); const isSubordinate = mySubordinates.find(subordinate => { - return subordinate.workerFk === id; + return subordinate.workerFk == id; }); const isHr = await models.Account.hasRole(myUserId, 'hr');