Skip to content

Private match access check uses wrong boolean operator #249

@raya-ac

Description

@raya-ac

The condition uses || (OR) when it should use && (AND). As written, a user is denied if they are NOT a participant OR NOT tournament staff. This means even participants without tournament staff privilege get blocked. Should only deny if the user is neither.

app/handlers/multiplayer/multiplayer.go, lines 96-98

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