Skip to content

registry-user.controller.getUser does not properly check user is of the same org #1699

@emathew5

Description

@emathew5

When registry-user.controller.getUser is called by the registryUser endpoint

router.get('/registryUser/:identifier',

it does not grab that identifier(a user UUID)'s org
instead it calls

const org = identifier
      ? await repo.getOrg(identifier, true)

which attempts to grab the org using the user UUID which will never be correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Needs Triage

    Status

    Normal Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions