MDL-33670 fix recent fatal typo in user_get_user_details()

Credit goes to Sunner Sun.
This commit is contained in:
Petr Skoda
2012-06-12 09:59:11 +02:00
parent 4776262f05
commit ea1cb30ce7
+1 -1
View File
@@ -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))) {