changed comparator
gitea/salix/1966-teamBoss_worker_time_control This commit looks good
Details
gitea/salix/1966-teamBoss_worker_time_control This commit looks good
Details
This commit is contained in:
parent
a5eb8e5315
commit
7fb3f75808
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue