Skip to content

Don't return members to the users who doesn't have permission to read them. #560

Closed
@maxceem

Description

@maxceem

Follow up from #483 (comment)

At the moment we use M2M token to read members using GET /project/{id}/members endpoints. And we control WHO can read members using permission READ_PROJECT_MEMBER.

But we also return members in GET /projects and GET /projects/{id} endpoints.

To keep it consistent we should only return members with project object in these project endpoints if user has permission READ_PROJECT_MEMBER.

We should implement unit tests in each endpoint GET /projects and GET /projects/{id} to verify that members are not returned when we are making request using M2M token with read:projects scope, but without read:project-members scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions