Rewriting "!$course->category" to "$course->id == SITEID" to make it clear.

This commit is contained in:
defacer
2005-02-05 02:08:25 +00:00
parent 4fe36ff931
commit 1610aa4916
+1 -1
View 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>",