Permalink
Browse files

MDL-29810 Assignment grading: don't include teachers in list of students

  • Loading branch information...
1 parent 38e9a1c commit 4ac9f47051f9d1055132fd5b0676342733577866 @bostelm bostelm committed Oct 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/lib.php
View
@@ -959,7 +959,7 @@ function display_submission($offset=-1,$userid =-1, $display=true) {
/// Get all ppl that can submit assignments
$currentgroup = groups_get_activity_group($cm);
- $users = get_enrolled_users($context, 'mod/assignment:view', $currentgroup, 'u.id');
+ $users = get_enrolled_users($context, 'mod/assignment:submit', $currentgroup, 'u.id');
if ($users) {
$users = array_keys($users);
// if groupmembersonly used, remove users who are not in any group

0 comments on commit 4ac9f47

Please sign in to comment.