Permalink
Browse files

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

  • Loading branch information...
bostelm committed Oct 22, 2011
1 parent e1fe0c5 commit 3be42c9e85c4a9a7dd53f17bfbfa682cc018f250
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/lib.php
View
@@ -955,7 +955,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 3be42c9

Please sign in to comment.