Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin: Add create_private_problem perm #2360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kiritofeng
Copy link
Member

Analogue of the contest perm create_private_contest for problems.

@Ninjaclasher
Copy link
Member

  1. Add missing migration
  2. Needs something similar to
    if not request.user.has_perm('judge.change_contest_visibility'):
    queryset = queryset.filter(Q(is_private=True) | Q(is_organization_private=True))
    from contests for both make_public and make_private, otherwise problem setters can bypass this permission by using the batch public action.

@kiritofeng kiritofeng force-pushed the org-priv-prob branch 4 times, most recently from d3798f4 to 61e6001 Compare December 17, 2024 10:09
@kiritofeng kiritofeng marked this pull request as ready for review December 18, 2024 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants