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

Fix --admin bug #247

Merged
merged 3 commits into from
Jul 4, 2023
Merged

Fix --admin bug #247

merged 3 commits into from
Jul 4, 2023

Conversation

vpchung
Copy link
Member

@vpchung vpchung commented Jul 4, 2023

Fixes #246

Changelog

  • add additional check in _validate_admin_permissions() that checks whether project is already publicly accessible
  • formatting

Preview

Before

$ challengeutils validate-project 9731653 syn28590455 --admin "RARE-X Organizers"
INFO:challengeutils.__main__:{'submission_errors': 'Project is private; please update its sharing settings. Writeup should be shared with RARE-X Organizers.', 'submission_status': 'INVALID'}

After

$ challengeutils validate-project 9731653 syn28590455 --admin "RARE-X Organizers"
INFO:challengeutils.__main__:{'submission_errors': '', 'submission_status': 'VALIDATED'}

@vpchung vpchung changed the title remove extraneous newlines Fix --admin bug Jul 4, 2023
@vpchung vpchung merged commit 55d32f4 into develop Jul 4, 2023
@vpchung vpchung deleted the issue-246 branch July 4, 2023 22:27
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.

--admin check for validate-project does not work as expected
1 participant