Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-25872 View assignment submissions: show only students, not teachers

Fixing incorrect capability reference mod/assignment:view to ...:submit
  • Loading branch information...
commit b1a24c1eb00558b0506ea6723011b9e7a2899811 1 parent e4527c5
Henning Bostelmann authored August 21, 2011

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

  1. 2  mod/assignment/lib.php
2  mod/assignment/lib.php
@@ -1190,7 +1190,7 @@ function display_submissions($message='') {
1190 1190
         }
1191 1191
 
1192 1192
         /// Get all ppl that are allowed to submit assignments
1193  
-        list($esql, $params) = get_enrolled_sql($context, 'mod/assignment:view', $currentgroup);
  1193
+        list($esql, $params) = get_enrolled_sql($context, 'mod/assignment:submit', $currentgroup);
1194 1194
 
1195 1195
         if ($filter == self::FILTER_ALL) {
1196 1196
             $sql = "SELECT u.id FROM {user} u ".

0 notes on commit b1a24c1

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