Skip to content

Get character by ID doesn't check who owns the character #113

Open

Description

@DooblyNoobly

get_queryset filters characters by owner, but get() ignores it and queries the whole table. Any account can read any character by walking through the IDs, and every row also reports the owner account attached to it.

Swap line 29 for self.get_object() so the filter runs.

persistence/api/views.py 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions