Rewriting "!$course->category" to "$course->id == SITEID" to make it clear.
This commit is contained in:
+1
-1
@@ -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>",
|
||||
|
||||
Reference in New Issue
Block a user