Skip to content

Commit

Permalink
Admins can ALWAYS post, even when blocked.
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jan 21, 2005
1 parent 31deddd commit a7ba121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a7ba121

Please sign in to comment.