Skip to content

Private match auth check uses wrong logical operator #97

Description

@raya-ac

The condition on line 181-183 of match.go uses || instead of &&. This means a user is blocked if they are not a participant OR not tournament staff — effectively requiring both. Should be AND so either condition grants access.

app/v1/match.go, lines 181-183

Activity

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions