diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-02-26 12:06:41 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-02-26 12:06:41 +0000 |
| commit | 1145e3fcd7e285cd963124d47bf05c135538d2a5 (patch) | |
| tree | 6c720229dfca613c5a17367a4d94cb7a3e21063e | |
| parent | 6e456bc63a039905abc6677f1adaa8aff774f8a6 (diff) | |
Resolve "Blubber: Link zu Veranstaltungsadministration"
Closes #2530
Merge request studip/studip!1907
| -rw-r--r-- | lib/models/BlubberThread.php | 7 |
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) { |
