Permalink
Browse files

MDL-34321 Assignment2.2 - Fixing submission count

  • Loading branch information...
jsnfwlr committed Dec 11, 2013
1 parent 98f4a31 commit 410fff85d05efd388c09364552e3ee090b7b5bb0
View
@@ -1935,7 +1935,7 @@ function count_real_submissions($groupid=0) {
$context = context_module::instance($this->cm->id);
// Get ids of users enrolled in the given course.
- list($enroledsql, $params) = get_enrolled_sql($context, 'mod/assignment:view', $groupid);
+ list($enroledsql, $params) = get_enrolled_sql($context, 'mod/assignment:submit', $groupid);
$params['assignmentid'] = $this->cm->instance;
// Get ids of users enrolled in the given course.
@@ -339,7 +339,7 @@ function count_real_submissions($groupid=0) {
$context = context_module::instance($this->cm->id);
// Get ids of users enrolled in the given course.
- list($enroledsql, $params) = get_enrolled_sql($context, 'mod/assignment:view', $groupid);
+ list($enroledsql, $params) = get_enrolled_sql($context, 'mod/assignment:submit', $groupid);
$params['assignmentid'] = $this->cm->instance;
$query = '';
@@ -136,7 +136,7 @@ function count_real_submissions($groupid=0) {
$context = context_module::instance($this->cm->id);
// Get ids of users enrolled in the given course.
- list($enroledsql, $params) = get_enrolled_sql($context, 'mod/assignment:view', $groupid);
+ list($enroledsql, $params) = get_enrolled_sql($context, 'mod/assignment:submit', $groupid);
$params['assignmentid'] = $this->cm->instance;
// Get ids of users enrolled in the given course.

0 comments on commit 410fff8

Please sign in to comment.