From 30194f36c704ed4fcddff90e0937e9c05e9f3df3 Mon Sep 17 00:00:00 2001
From: Alexander Purr <purr@ub.uni-leipzig.de>
Date: Fri, 10 Jan 2020 10:48:57 +0100
Subject: [PATCH] refs #16707 [fid_adlr] display offcanvas toggler only if user
 is logged in

---
 themes/fid_adlr/templates/myresearch/databases.phtml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/themes/fid_adlr/templates/myresearch/databases.phtml b/themes/fid_adlr/templates/myresearch/databases.phtml
index 62495e01e8c..8bc174cd8da 100644
--- a/themes/fid_adlr/templates/myresearch/databases.phtml
+++ b/themes/fid_adlr/templates/myresearch/databases.phtml
@@ -9,8 +9,10 @@ $account = $this->auth()->getManager();
 ?>
 
 <div class="<?= $this->layoutClass('mainbody') ?>">
-  <?php /* finc V5: adds offcanvas-toggler missing in VF5, compare with finc/fid themes during update - CK */ ?>
-  <?=$this->render('RecordDriver/DefaultRecord/offcanvas-toggler-myresearch'); ?>
+  <?php if ($account->isLoggedIn()): ?>
+    <?php /* finc V5: adds offcanvas-toggler missing in VF5, compare with finc/fid themes during update - CK */ ?>
+    <?=$this->render('RecordDriver/DefaultRecord/offcanvas-toggler-myresearch'); ?>
+  <?php endif; ?>
 
   <!-- fid-adlr: licenses -->
   <br />
-- 
GitLab