Revert "MDL-37164 core_message: prevent users from interacting with themself"

Was breaking unit tests.

This reverts commit 61a73b43c1 and 7bb19ee167.
This commit is contained in:
Dan Poltawski
2013-02-05 14:42:20 +08:00
parent 61a73b43c1
commit 751f00a0bb
3 changed files with 17 additions and 31 deletions
-4
View File
@@ -115,10 +115,6 @@ unset($user2id);
$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)) {