MDL-74169 core_message: Hide preferences link when permissions lacking
This commit is contained in:
@@ -626,6 +626,7 @@ class helper {
|
||||
'isdrawer' => $isdrawer,
|
||||
'showemojipicker' => !empty($CFG->allowemojipicker),
|
||||
'messagemaxlength' => api::MESSAGE_MAX_LENGTH,
|
||||
'caneditownmessageprofile' => has_capability('moodle/user:editownmessageprofile', \context_system::instance())
|
||||
];
|
||||
|
||||
if ($sendtouser || $conversationid) {
|
||||
|
||||
Reference in New Issue
Block a user