Skip to content

Commit

Permalink
MDL-25872 View assignment submissions: show only students, not teachers
Browse files Browse the repository at this point in the history
Fixing incorrect capability reference mod/assignment:view to ...:submit
  • Loading branch information
bostelm committed Aug 26, 2011
1 parent e4527c5 commit b1a24c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assignment/lib.php
Expand Up @@ -1190,7 +1190,7 @@ function display_submissions($message='') {
}

/// Get all ppl that are allowed to submit assignments
list($esql, $params) = get_enrolled_sql($context, 'mod/assignment:view', $currentgroup);
list($esql, $params) = get_enrolled_sql($context, 'mod/assignment:submit', $currentgroup);

if ($filter == self::FILTER_ALL) {
$sql = "SELECT u.id FROM {user} u ".
Expand Down

0 comments on commit b1a24c1

Please sign in to comment.