Merge branch 'MDL-41166-28' of git://github.com/danpoltawski/moodle into MOODLE_28_STABLE
This commit is contained in:
@@ -2442,7 +2442,7 @@ class assign {
|
||||
$params = array('overflowdiv' => true, 'context' => $this->get_context());
|
||||
$result .= format_text($finaltext, $format, $params);
|
||||
|
||||
if ($CFG->enableportfolios) {
|
||||
if ($CFG->enableportfolios && has_capability('mod/assign:exportownsubmission', $this->context)) {
|
||||
require_once($CFG->libdir . '/portfoliolib.php');
|
||||
|
||||
$button = new portfolio_add_button();
|
||||
|
||||
Reference in New Issue
Block a user