From a7ba1215b07010e874da030b9cc5a7fb0bec72fa Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 21 Jan 2005 05:04:02 +0000 Subject: [PATCH] Admins can ALWAYS post, even when blocked. --- message/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message/user.php b/message/user.php index f221b9c195..181051e6af 100644 --- a/message/user.php +++ b/message/user.php @@ -194,7 +194,7 @@ /// 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; } -- 2.39.5