Skip to content

Commit

Permalink
MDL-45729-Teacher-submission-status: Only show submission summary if …
Browse files Browse the repository at this point in the history
…user has assign:submit capability
  • Loading branch information
gbowman85 committed May 29, 2014
1 parent 89262fa commit ab1222c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/assign/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3731,7 +3731,9 @@ public function view_student_summary($user, $showlinks) {
$gradingcontrollerpreview,
$instance->attemptreopenmethod,
$instance->maxattempts);
$o .= $this->get_renderer()->render($submissionstatus);
if (has_capability('mod/assign:submit', $this->get_context())) {
$o .= $this->get_renderer()->render($submissionstatus);
}

require_once($CFG->libdir.'/gradelib.php');
require_once($CFG->dirroot.'/grade/grading/lib.php');
Expand Down

0 comments on commit ab1222c

Please sign in to comment.