diff --git a/app/controllers/course/courseware.php b/app/controllers/course/courseware.php
index 8518b25dc8c286d52aecf915f0f169eadea45b7c..71977543825a83ab204d57a40566f169d6b9be63 100755
--- a/app/controllers/course/courseware.php
+++ b/app/controllers/course/courseware.php
@@ -103,8 +103,8 @@ class Course_CoursewareController extends AuthenticatedController
     public function pdf_export_action($element_id, $with_children)
     {
         $element = \Courseware\StructuralElement::findOneById($element_id);
-
-        $this->render_pdf($element->pdfExport($this->user, $with_children), trim($element->title).'.pdf');
+        $user = User::find($GLOBALS['user']->id);
+        $this->render_pdf($element->pdfExport($user, $with_children), trim($element->title).'.pdf');
     }
 
     private function setIndexSidebar(): void
diff --git a/lib/models/Courseware/StructuralElement.php b/lib/models/Courseware/StructuralElement.php
index 5123143facc8f990e05d255f6e86edc4dcce97da..ae366bba1bf6f4d932018958a10a6e14a8a78d18 100755
--- a/lib/models/Courseware/StructuralElement.php
+++ b/lib/models/Courseware/StructuralElement.php
@@ -785,7 +785,7 @@ SQL;
             $doc->setHeaderTitle(sprintf(_('Courseware von %s'), $this->user->getFullname()));
         }
 
-        if (!self::canRead($user)) {
+        if (!self::canVisit($user)) {
             $doc->addPage();
             $doc->addContent(_('Diese Seite steht Ihnen nicht zur Verfügung!'));
 
@@ -810,7 +810,7 @@ SQL;
 
     private function getElementPdfExport(int $depth, bool $with_children, $user, $doc)
     {
-        if (!$this->canRead($user)) {
+        if (!$this->canVisit($user)) {
             return '';
         }
         $doc->addPage();