Skip to content

Get user by id doesnt work if user doesn't have enough rights #542

@andrejcermak

Description

@andrejcermak

Get user by id doesn't work if user doesn't have enough rights because of the first 2 lines

def find_by_id(id) cached_user = find { |user| user.id == id } return cached_user if cached_user
as it calls the list_all_users in the all function, so if the user doesn't have sufficient rights to list all users, this fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions