Permalink
Browse files

MDL-25872 View assignment submissions: show only students, not teachers

Fixing incorrect capability reference mod/assignment:view to ...:submit
  • Loading branch information...
bostelm committed Aug 20, 2011
1 parent e4527c5 commit b1a24c1eb00558b0506ea6723011b9e7a2899811
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/lib.php
View
@@ -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 ".

0 comments on commit b1a24c1

Please sign in to comment.