From 2ecf1b35e03599b8f4494db4018952e46ef64d02 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Fri, 19 Apr 2024 13:13:27 +0000 Subject: 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 2bc78a9..aa6016f 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; -- cgit v1.0