Admins can ALWAYS post, even when blocked.

This commit is contained in:
moodler
2005-01-21 05:04:02 +00:00
parent 31dedddba7
commit a7ba1215b0
+1 -1
View File
@@ -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;
}