Skip to content

Commit

Permalink
Merge pull request sakaiproject#1507 from Fudan-University/SAK-30174
Browse files Browse the repository at this point in the history
SAK-30174 Instructors can not download grade file if the assignment is non-electronic
  • Loading branch information
Gao-Jun committed Jan 5, 2016
2 parents 36acecc + 56a46ab commit 5ce3204
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11355,11 +11355,12 @@ public String getAssignmentId()
/**
* Get whether this is a final submission.
*
* SAK-30174 To non-electronic assignement, submissions is always submitted.
* @return True if a final submission, false if still a draft.
*/
public boolean getSubmitted()
{
return m_submitted;
return m_submitted || getAssignment().getContent().getTypeOfSubmission() == Assignment.NON_ELECTRONIC_ASSIGNMENT_SUBMISSION;
}

public String getSubmitterId() {
Expand Down

0 comments on commit 5ce3204

Please sign in to comment.