Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-38443 Assignment: Missing permissions check on downloadall submis…

…sions
  • Loading branch information...
commit b4eeee49cd931a6297687d80e4e53fdd5dcbb93e 1 parent ed8772d
Damyon Wiese authored March 13, 2013 danpoltawski committed May 06, 2013

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  mod/assign/locallib.php
2  mod/assign/locallib.php
@@ -1565,6 +1565,8 @@ private function download_submissions() {
1565 1565
         // more efficient to load this here
1566 1566
         require_once($CFG->libdir.'/filelib.php');
1567 1567
 
  1568
+        require_capability('mod/assign:grade', $this->context);
  1569
+
1568 1570
         // load all submissions
1569 1571
         $submissions = $this->get_all_submissions('','');
1570 1572
 

0 notes on commit b4eeee4

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