Permalink
Browse files

MDL-33670 fix recent fatal typo in user_get_user_details()

Credit goes to Sunner Sun.
  • Loading branch information...
1 parent 4776262 commit ea1cb30ce7e9ae6bde08b63632080a28c80a2e3c @skodak skodak committed Jun 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/lib.php
View
@@ -310,7 +310,7 @@ function user_get_user_details($user, $course = null) {
}
if ($isadmin
- of $currentuser
+ or $currentuser
or $canviewuseremail // this is a capability in course context, it will be false in usercontext
or $user->maildisplay == 1
or ($user->maildisplay == 2 and enrol_sharing_course($user, $USER))) {

0 comments on commit ea1cb30

Please sign in to comment.