aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-02-26 12:06:41 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-02-26 12:06:41 +0000
commit1145e3fcd7e285cd963124d47bf05c135538d2a5 (patch)
tree6c720229dfca613c5a17367a4d94cb7a3e21063e
parent6e456bc63a039905abc6677f1adaa8aff774f8a6 (diff)
Resolve "Blubber: Link zu Veranstaltungsadministration"
Closes #2530 Merge request studip/studip!1907
-rw-r--r--lib/models/BlubberThread.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/models/BlubberThread.php b/lib/models/BlubberThread.php
index d3a4de6..57b72f0 100644
--- a/lib/models/BlubberThread.php
+++ b/lib/models/BlubberThread.php
@@ -478,7 +478,12 @@ class BlubberThread extends SimpleORMap implements PrivacyObject
if ($module = $tool->getStudipModule()) {
$last_visit = object_get_visit($this['context_id'], $module->getPluginId());
$nav = $module->getIconNavigation($this['context_id'], $last_visit, $GLOBALS['user']->id);
- if (isset($nav) && $nav->isVisible(true)) {
+ if (
+ isset($nav)
+ && $nav->isVisible(true)
+ && count($module->getTabNavigation($this['context_id'])) > 0
+ && $GLOBALS['perm']->have_studip_perm($tool->getVisibilityPermission(), $this['context_id'])
+ ) {
$icons[] = $nav;
}
if ($module instanceof CoreSchedule) {