From 1610aa4916ee2e6cab16957fc4a6d3b4252802db Mon Sep 17 00:00:00 2001 From: defacer Date: Sat, 5 Feb 2005 02:08:25 +0000 Subject: [PATCH] Rewriting "!$course->category" to "$course->id == SITEID" to make it clear. --- user/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.39.5