Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Feature restrict downloading mm subs #502

Merged
merged 2 commits into from
Sep 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10302,6 +10302,9 @@ public void createOrUpdateMarathonMatch(Project project, Date startDate, Date re
Map<Long, String> newProps = new HashMap<Long,String>();
newProps.put(ProjectPropertyType.MM_MATCH_ID, String.valueOf(mmRound.getId()));
newProps.put(ProjectPropertyType.MM_CONTEST_ID, String.valueOf(mmRound.getContest().getId()));

// defaulting this to flase; and submissions should not be able to download by other members
newProps.put(ProjectPropertyType.VIEWABLE_SUBMISSIONS_FLAG_KEY_STRING, "false");

createProjectProperties(project.getId(), project, newProps, operator, conn);

Expand Down