From 7fb3f75808bffca57ab98303ce65c4cd2ae769c7 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Thu, 2 Jan 2020 11:21:11 +0100 Subject: [PATCH] changed comparator --- modules/worker/back/methods/worker/isSubordinate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/worker/back/methods/worker/isSubordinate.js b/modules/worker/back/methods/worker/isSubordinate.js index a85484668b..18c7df17ef 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');