]> git.mjollnir.org Git - moodle.git/commitdiff
Admins can ALWAYS post, even when blocked.
authormoodler <moodler>
Fri, 21 Jan 2005 05:04:02 +0000 (05:04 +0000)
committermoodler <moodler>
Fri, 21 Jan 2005 05:04:02 +0000 (05:04 +0000)
message/user.php

index f221b9c1953f2513b87210cc38259e8d83625c36..181051e6afc40eca27f69cc210afedfdb8fcf634 100644 (file)
 
             /// Check that the user is not blocking us!!
             if ($contact = get_record('message_contacts', 'userid', $user->id, 'contactid', $USER->id)) {
-                if ($contact->blocked) {
+                if ($contact->blocked and !isadmin()) {
                     print_heading(get_string('userisblockingyou', 'message'));
                     exit;
                 }