Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'mdl-68425-m38' of https://github.com/deraadt/moodle int…
…o MOODLE_38_STABLE
  • Loading branch information
snake committed May 28, 2020
2 parents 8c83815 + b16b681 commit 81e276c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/index.php
Expand Up @@ -283,7 +283,7 @@
}
echo html_writer::end_tag('div');
$displaylist = array();
if (!empty($CFG->messaging)) {
if (!empty($CFG->messaging) && has_all_capabilities(['moodle/site:sendmessage', 'moodle/course:bulkmessaging'], $context)) {
$displaylist['#messageselect'] = get_string('messageselectadd');
}
if (!empty($CFG->enablenotes) && has_capability('moodle/notes:manage', $context) && $context->id != $frontpagectx->id) {
Expand Down

0 comments on commit 81e276c

Please sign in to comment.