Admins can ALWAYS post, even when blocked.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user