forked from sio2project/oioioi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attachments visibility follow-up (sio2project#339)
* Fix displaying attachments hidden to non-admins This is a follow-up of sio2project#233, by which only testspackages were handled somewhat properly. The 'admin_only' field has been added, as the pub_date alone isn't enough to determine whether the attachment would be visible if the user wasn't an admin - one example is a ContestAttachment for a round that starts in the future. * Fix checking if a testspackage can be downloaded * Update and extend the tests for testspackages * Rework the Contest/ProblemAttachment tests
- Loading branch information
1 parent
9690e43
commit 0fcee5e
Showing
11 changed files
with
287 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.