merged from stable, bug fix for #4366

This commit is contained in:
toyomoyo
2005-11-28 02:29:19 +00:00
parent 8f23e33bf7
commit 9a3d715ffd
+2 -2
View File
@@ -73,9 +73,9 @@
error(get_string("groupnotamember"), "../course/view.php?id=$course->id");
}
}
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
if ($CFG->forceloginforprofiles and !isteacherinanycourse() and !isteacherinanycourse($user->id)) { // Teachers can browse and be browsed at site level. If not forceloginforprofiles, allow access (bug #4366)
print_header("$personalprofile: ", "$personalprofile: ",
"<a href=\"index.php?id=$course->id\">$participants</a>",
"", "", true, "&nbsp;", navmenu($course));