Skip to content

Check if member of project when getting WorkPeriod #269

Closed
@maxceem

Description

@maxceem

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions