]> git.mjollnir.org Git - moodle.git/commitdiff
Rewriting "!$course->category" to "$course->id == SITEID" to make it clear.
authordefacer <defacer>
Sat, 5 Feb 2005 02:08:25 +0000 (02:08 +0000)
committerdefacer <defacer>
Sat, 5 Feb 2005 02:08:25 +0000 (02:08 +0000)
user/view.php

index 36f79ccba5cafb537e0710e223f8db76d364e951..9ca4746dd33b576eb9fda628f81240c39f9e569b 100644 (file)
@@ -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: ",
                           "<a href=\"index.php?id=$course->id\">$participants</a>",