From b3399e96283c7a86a3be6e5a9a8dbbb4afbce060 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Fri, 19 Apr 2024 13:13:27 +0000 Subject: [PATCH] fixes #4041 Closes #4041 Merge request studip/studip!2895 --- lib/models/BlubberThread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/BlubberThread.php b/lib/models/BlubberThread.php index 2bc78a93b10..aa6016fc461 100644 --- a/lib/models/BlubberThread.php +++ b/lib/models/BlubberThread.php @@ -470,7 +470,7 @@ class BlubberThread extends SimpleORMap implements PrivacyObject if ( isset($nav) && $nav->isVisible(true) - && count($module->getTabNavigation($this['context_id'])) > 0 + && $module->getTabNavigation($this['context_id']) && $GLOBALS['perm']->have_studip_perm($tool->getVisibilityPermission(), $this['context_id']) ) { $icons[] = $nav; -- GitLab