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 63d9dec commit c5c9b33Copy full SHA for c5c9b33
main/inc/lib/sessionmanager.lib.php
@@ -491,6 +491,10 @@ public static function getSessionsForAdmin(
491
492
$userId = (int) $userId;
493
494
+ if (!api_is_platform_admin() && !api_is_session_admin() && !api_is_teacher()) {
495
+ api_not_allowed(true);
496
+ }
497
+
498
if (!api_is_platform_admin()) {
499
if (api_is_session_admin() &&
500
'false' === api_get_setting('allow_session_admins_to_manage_all_sessions')
0 commit comments