From: defacer Date: Sat, 5 Feb 2005 02:08:25 +0000 (+0000) Subject: Rewriting "!$course->category" to "$course->id == SITEID" to make it clear. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1610aa4916ee2e6cab16957fc4a6d3b4252802db;p=moodle.git Rewriting "!$course->category" to "$course->id == SITEID" to make it clear. --- diff --git a/user/view.php b/user/view.php index 36f79ccba5..9ca4746dd3 100644 --- a/user/view.php +++ b/user/view.php @@ -68,7 +68,7 @@ } } - if (!$course->category and !$currentuser) { // To reduce possibility of "browsing" userbase at site level + if ($course->id == SITEID and !$currentuser) { // To reduce possibility of "browsing" userbase at site level if (!isteacherinanycourse() and !isteacherinanycourse($user->id) ) { // Teachers can browse and be browsed at site level print_header("$personalprofile: ", "$personalprofile: ", "id\">$participants",