mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-43671 message: removed an overly cautious check
This commit is contained in:
parent
12efa52762
commit
811c0c8523
1 changed files with 0 additions and 4 deletions
|
@ -114,10 +114,6 @@ $user2realuser = !empty($user2) && core_user::is_real_user($user2->id);
|
||||||
$showactionlinks = $showactionlinks && $user2realuser;
|
$showactionlinks = $showactionlinks && $user2realuser;
|
||||||
$systemcontext = context_system::instance();
|
$systemcontext = context_system::instance();
|
||||||
|
|
||||||
if (!empty($user2) && $user1->id == $user2->id) {
|
|
||||||
print_error('invaliduserid');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Is the user involved in the conversation?
|
// Is the user involved in the conversation?
|
||||||
// Do they have the ability to read other user's conversations?
|
// Do they have the ability to read other user's conversations?
|
||||||
if (!message_current_user_is_involved($user1, $user2) && !has_capability('moodle/site:readallmessages', $systemcontext)) {
|
if (!message_current_user_is_involved($user1, $user2) && !has_capability('moodle/site:readallmessages', $systemcontext)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue