Permalink
Browse files

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 cdu@somerville.qld.edu.au, slightly modified
  • Loading branch information...
1 parent 624bc87 commit ccfd6c83f3ab880aaeb257b81f5cf49c8ec107d5 defacer committed Feb 15, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/view.php
View
2 user/view.php
@@ -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>",

0 comments on commit ccfd6c8

Please sign in to comment.