From 811c0c85235f0fd2910bdb6fd1cc35ce32cff8c8 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Fri, 17 Jan 2014 07:32:12 +0800 Subject: [PATCH] MDL-43671 message: removed an overly cautious check --- message/index.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/message/index.php b/message/index.php index d4c6d4d0752..c04e6d51fad 100644 --- a/message/index.php +++ b/message/index.php @@ -114,10 +114,6 @@ $user2realuser = !empty($user2) && core_user::is_real_user($user2->id); $showactionlinks = $showactionlinks && $user2realuser; $systemcontext = context_system::instance(); -if (!empty($user2) && $user1->id == $user2->id) { - print_error('invaliduserid'); -} - // Is the user involved in the conversation? // 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)) {