Skip to content

Users /roles api endpoint does not return implied member roles #12427

Closed as not planned
@Emyrk

Description

@Emyrk

The /users/{user}/roles endpoint does not use the correct SQL call for fetching roles.

func (api *API) userRoles(rw http.ResponseWriter, r *http.Request) {

It should use GetAuthorizationUserRoles. Read this thread on why this is not a trivial fix: #12412 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiArea: HTTP APIs3Bugs that confuse, annoy, or are purely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions