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

Commit a5a1de7

Browse files
author
Dushyant Bhalgami
committed
Merge pull request #503 from appirio-tech/feature-restrict-downloading-mm-subs
added ID for Viewable Submission Flag
1 parent 61a70d2 commit a5a1de7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

components/project_management/src/java/main/com/topcoder/management/project/ProjectPropertyType.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ public class ProjectPropertyType implements Serializable {
106106
* @since 1.2.1
107107
*/
108108
public static final String VIEWABLE_SUBMISSIONS_FLAG_KEY_STRING = "Viewable Submissions Flag";
109+
110+
/**
111+
* Represent "Viewable Submissions Flag Id" property type
112+
* @since 1.2.8
113+
*/
114+
public static final Long VIEWABLE_SUBMISSIONS_FLAG_ID = 53L;
109115

110116
/**
111117
* Represents key for Viewable Submitters property.

components/project_management/src/java/main/com/topcoder/management/project/persistence/AbstractInformixProjectPersistence.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10302,6 +10302,9 @@ public void createOrUpdateMarathonMatch(Project project, Date startDate, Date re
1030210302
Map<Long, String> newProps = new HashMap<Long,String>();
1030310303
newProps.put(ProjectPropertyType.MM_MATCH_ID, String.valueOf(mmRound.getId()));
1030410304
newProps.put(ProjectPropertyType.MM_CONTEST_ID, String.valueOf(mmRound.getContest().getId()));
10305+
10306+
// defaulting this to flase; and submissions should not be able to download by other members
10307+
newProps.put(ProjectPropertyType.VIEWABLE_SUBMISSIONS_FLAG_ID, "false");
1030510308

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

0 commit comments

Comments
 (0)