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:
d139f45
)
MDL-63289 message: Remove unused global
author
Andrew Nicols
<andrew@nicols.co.uk>
Mon, 22 Oct 2018 00:31:04 +0000
(08:31 +0800)
committer
Andrew Nicols
<andrew@nicols.co.uk>
Mon, 22 Oct 2018 00:31:04 +0000
(08:31 +0800)
message/classes/api.php
patch
|
blob
|
blame
|
history
diff --git
a/message/classes/api.php
b/message/classes/api.php
index
9eb9759
..
b2bd57a
100644
(file)
--- a/
message/classes/api.php
+++ b/
message/classes/api.php
@@
-1685,8
+1685,6
@@
class api {
* @return bool true if recipient hasn't blocked sender and sender can contact to recipient, false otherwise.
*/
protected static function can_contact_user(\stdClass $recipient, \stdClass $sender) : bool {
- global $CFG;
-
if (has_capability('moodle/site:messageanyuser', \context_system::instance(), $sender->id)) {
// The sender has the ability to contact any user across the entire site.
return true;