Skip to content

Commit 4dda492

Browse files
authored
update download restrictions (#206)
1 parent 9517a86 commit 4dda492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/cronos/onlinereview/actions/projectdetails/BaseProjectDetailsAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ protected String handleDownloadSubmission(HttpServletRequest request, HttpServle
499499
}
500500

501501
// Allow only submitter to download the submission if it is MM type of challenge
502-
if (project.getProjectCategory().getId() == 37) {
502+
if (project.getProjectCategory().getId() == 37 || project.getProjectCategory().getProjectType().getId() == 3) {
503503
if (!Boolean.parseBoolean((String) project.getProperty("Viewable Submissions Flag"))) {
504504
long submitter = upload.getOwner();
505505
long loggedInUserId = AuthorizationHelper.getLoggedInUserId(request);

0 commit comments

Comments
 (0)