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 4ad6128 commit 7d8b217bca8315869355ec049c2110b5e994d64c
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 7d8b217

Please sign in to comment.