Skip to content
Browse files

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

Fixing incorrect capability reference mod/assignment:view to ...:submit
  • Loading branch information...
1 parent 58609af commit 62da28c64dedec47d07fea8185f6bca77ff86fae @bostelm bostelm committed Aug 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/lib.php
View
2 mod/assignment/lib.php
@@ -1189,7 +1189,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 62da28c

Please sign in to comment.
Something went wrong with that request. Please try again.