Closed
Description
When we try to get a WorkPeriod by id by the user who doesn't have privileges, such requests always fallback to DB due to internal error, see log:
[2021-05-27T08:02:46.580Z] WorkPeriodService getWorkPeriod ERROR : cannot GET /v5/projects/undefined (404)
[2021-05-27T08:02:46.580Z] WorkPeriodService getWorkPeriod INFO : try to query db for data
[2021-05-27T08:02:47.131Z] helper checkIsMemberOfProject DEBUG : the members of project 111: [22880988,40152933,40152856], authUserId: 40152856