We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13a8fbf commit e463775Copy full SHA for e463775
main/inc/ajax/user_manager.ajax.php
@@ -60,7 +60,13 @@
60
61
$userData = '<h3>'.$user_info['complete_name'].'</h3>'.$user_info['mail'].$user_info['official_code'];
62
if ($isAnonymous) {
63
- echo $userData;
+ // Only allow anonymous users to see user popup if the popup user
64
+ // is a teacher (which might be necessary to illustrate a course)
65
+ if ($user_info['status'] === COURSEMANAGER) {
66
+ echo $userData;
67
+ } else {
68
+ echo '<h3>-</h3>';
69
+ }
70
} else {
71
echo Display::url(
72
$userData,
0 commit comments