MDL-33670 fix recent fatal typo in user_get_user_details()
Credit goes to Sunner Sun.
This commit is contained in:
+1
-1
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user