Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 4ac9f47051f9d1055132fd5b0676342733577866 1 parent 38e9a1c
@bostelm bostelm authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/assignment/lib.php
View
2  mod/assignment/lib.php
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.