Commit 6e3d4263 authored by Penny Leach's avatar Penny Leach
Browse files

allow admins to override the message pref setting

parent 53b0a25a
......@@ -275,7 +275,7 @@ EOF;
}
$messagepref = get_account_preference($userid, 'messages');
if (($is_friend && $messagepref == 'friends') || $messagepref == 'allow') {
if (($is_friend && $messagepref == 'friends') || $messagepref == 'allow' || $USER->get('admin')) {
$messageform = array(
'name' => 'messageform',
'jsform' => true,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment