Skip to content

Error when accessing a private competition and not logged in #867

Description

@Didayolo

When accessing a private competition through its secret URL and not logged in, we got this:

Capture d’écran 2023-05-11 à 19 06 43

This is due to this, in views/competitions.py:

        else:
            # if user is not authenticated only filter published/public competitions
            qs = qs.filter(Q(published=True))

This filter is the same for the search bar and for accessing the competition...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions