Skip to content
Snippets Groups Projects
Commit c7a50f71 authored by Ron Lucke's avatar Ron Lucke Committed by Jan-Hendrik Willms
Browse files

fix #3887

Closes #3887

Merge request studip/studip!2743
parent 586ed51b
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ class Courseware_PublicController extends StudipController
$publicLink = PublicLink::find($this->link_id);
$this->invalid = $publicLink === null;
if (!$this->invalid) {
$this->block_types = Courseware\BlockTypes\BlockType::getBlockTypes();
$this->expired = $publicLink->isExpired();
$this->link_pass = $publicLink->password;
$this->entry_element_id = $publicLink->structural_element_id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment