Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'MDL-29810-21' of git://github.com/bostelm/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
commit 7a6d43a3eeac3e28a62e6ddfe233727afa042fae 2 parents 376d035 + 716267f
Sam Hemelryk samhemelryk authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  mod/assignment/lib.php
2  mod/assignment/lib.php
@@ -959,7 +959,7 @@ function display_submission($offset=-1,$userid =-1, $display=true) {
959 959 /// Get all ppl that can submit assignments
960 960
961 961 $currentgroup = groups_get_activity_group($cm);
962   - $users = get_enrolled_users($context, 'mod/assignment:view', $currentgroup, 'u.id');
  962 + $users = get_enrolled_users($context, 'mod/assignment:submit', $currentgroup, 'u.id');
963 963 if ($users) {
964 964 $users = array_keys($users);
965 965 // if groupmembersonly used, remove users who are not in any group

0 comments on commit 7a6d43a

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