Fix for bug 2550:
Users cannot see their own profile if course is set to separate groups and the user is not a member of any group. Patch provided by [email protected], slightly modified
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@
|
||||
if (groupmode($course) == SEPARATEGROUPS and !isteacheredit($course->id)) { // Groups must be kept separate
|
||||
require_login();
|
||||
|
||||
if (!isteacheredit($course->id, $user->id) and !ismember(mygroupid($course->id), $user->id)) {
|
||||
if (!$currentuser && !isteacheredit($course->id, $user->id) && !ismember(mygroupid($course->id), $user->id)) {
|
||||
print_header("$personalprofile: ", "$personalprofile: ",
|
||||
"<a href=\"../course/view.php?id=$course->id\">$course->shortname</a> ->
|
||||
<a href=\"index.php?id=$course->id\">$participants</a>",
|
||||
|
||||
Reference in New Issue
Block a user