mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-45729 assign: conditional submission summary
Only show the submission summary if user has assign:submit capability. Amended to fix some whitespace and the commit message.
This commit is contained in:
parent
3566ea16a8
commit
09fdd221ca
@ -3731,7 +3731,9 @@ class assign {
|
||||
$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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user