diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-11-05 08:10:15 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-11-05 08:10:15 +0000 |
| commit | 31480dbdf30e1b656ea702604f142aa5ee531da2 (patch) | |
| tree | 8302401d8c57704bc7876d3227351a8726db4cfe /app/controllers/courseware | |
| parent | cd04aafb62236cb8c578df37791f4a9bcb60e409 (diff) | |
correct calls to StructualElement::canRead(), fixes #4815
Closes #4815
Merge request studip/studip!3605
Diffstat (limited to 'app/controllers/courseware')
| -rw-r--r-- | app/controllers/courseware/lti.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/courseware/lti.php b/app/controllers/courseware/lti.php index 7792051..93159cc 100644 --- a/app/controllers/courseware/lti.php +++ b/app/controllers/courseware/lti.php @@ -11,7 +11,7 @@ class Courseware_LtiController extends AuthenticatedController public function iframe_action($block_id) { $cw_block = \Courseware\Block::find($block_id); - if (!$cw_block->container->structural_element->canRead($GLOBALS['user']->id)) { + if (!$cw_block->container->structural_element->canRead(User::findCurrent())) { throw new AccessDeniedException(); } |
