Permalink
Browse files

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

…OODLE_20_STABLE
  • Loading branch information...
2 parents 6cedec7 + 3be42c9 commit f909700aff7892eae8a2bb0374f2b9b7d61be847 Sam Hemelryk committed Oct 31, 2011
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 f909700

Please sign in to comment.