Skip to content

Commit

Permalink
Security: fix ajax user manager to not display user info to anonymous…
Browse files Browse the repository at this point in the history
… users - refs #3905
  • Loading branch information
binote00 committed Aug 10, 2021
1 parent 9f141a6 commit 4ab26ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/inc/ajax/user_manager.ajax.php
Expand Up @@ -69,6 +69,10 @@

$isAnonymous = api_is_anonymous();

if ($isAnonymous && empty($courseId)) {
break;
}

if ($isAnonymous && $courseId) {
if ('false' === api_get_setting('course_catalog_published')) {
break;
Expand Down

0 comments on commit 4ab26ce

Please sign in to comment.