diff --git a/lib/models/BlubberThread.php b/lib/models/BlubberThread.php index 2bc78a93b10751bf630ca60e80491f3185dea790..aa6016fc4615b4dbf321eaeb00da6c4936ac58fd 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;