Merge branch '1966-teamBoss_worker_time_control' of verdnatura/salix into dev
gitea/salix/dev This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-01-02 11:20:39 +00:00 committed by Gitea
commit 8a38ca7055
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ module.exports = Self => {
const mySubordinates = await Self.mySubordinates(ctx); const mySubordinates = await Self.mySubordinates(ctx);
const isSubordinate = mySubordinates.find(subordinate => { const isSubordinate = mySubordinates.find(subordinate => {
return subordinate.workerFk === id; return subordinate.workerFk == id;
}); });
const isHr = await models.Account.hasRole(myUserId, 'hr'); const isHr = await models.Account.hasRole(myUserId, 'hr');