Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
457e61c
)
MDL-68425 user: Add capability check for messaging
author
deraadt
<michaelderaadt@gmail.com>
Thu, 16 Apr 2020 01:47:45 +0000
(11:47 +1000)
committer
Jake Dallimore
<jake@moodle.com>
Thu, 28 May 2020 03:23:42 +0000
(11:23 +0800)
user/index.php
patch
|
blob
|
blame
|
history
diff --git
a/user/index.php
b/user/index.php
index
3a4ddf1
..
08169f4
100644
(file)
--- a/
user/index.php
+++ b/
user/index.php
@@
-367,7
+367,7
@@
if ($bulkoperations) {
}
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) {