Difference Report - 6/16/2011, 9:19 AM ================================================================================ File 1: "A:\htdocs\moodle\blocks\online_users\block_online_users_old.php" Last modified on 6/16/2011, 9:18 AM File 2: "A:\htdocs\moodle\blocks\online_users\block_online_users.php" Last modified on 6/16/2011, 8:57 AM ================================================================================ Lines modified at 153 ================================================================================ + $courseonly = !empty($CFG->forcecourseonlymessage) && enrol_sharing_course($USER, $user) ? true : false; - if ($canshowicon and ($USER->id != $user->id) and !isguestuser($user)) { // Only when logged in and messaging active etc + if ($canshowicon and ($USER->id != $user->id) and !isguestuser($user) and (is_siteadmin($USER) || $courseonly) && (has_capability('moodle/site:unrestrictedmessages', get_context_instance(CONTEXT_SYSTEM),$USER->id) || has_capability('moodle/site:unrestrictedmessages', get_context_instance(CONTEXT_SYSTEM),$user->id))) { // Only when logged in and messaging active etc