Skip to content
Snippets Groups Projects
Commit 1145e3fc authored by Philipp Schüttlöffel's avatar Philipp Schüttlöffel Committed by Jan-Hendrik Willms
Browse files

Resolve "Blubber: Link zu Veranstaltungsadministration"

Closes #2530

Merge request studip/studip!1907
parent 6e456bc6
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment