aboutsummaryrefslogtreecommitdiff
path: root/lib/modules/IliasInterfaceModule.php
diff options
context:
space:
mode:
authorArne Schröder, M. A. <schroeder@data-quest.de>2024-12-20 10:55:36 +0000
committerThomas Hackl <hackl@data-quest.de>2024-12-20 10:55:36 +0000
commit02990f73bd61f7dbccd9ca9971d1aee72130d8e1 (patch)
treee25db36936efb4a4b0126b7b15132f9f326540f6 /lib/modules/IliasInterfaceModule.php
parent0cdee342af4632ba305236591dede586c7b20282 (diff)
Resolve "Anzeige von ILIAS-Kursen auf "Mein Arbeitsplatz""
Closes #4264 Merge request studip/studip!3367
Diffstat (limited to 'lib/modules/IliasInterfaceModule.php')
-rw-r--r--lib/modules/IliasInterfaceModule.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/modules/IliasInterfaceModule.php b/lib/modules/IliasInterfaceModule.php
index 2ab82ad..54a4916 100644
--- a/lib/modules/IliasInterfaceModule.php
+++ b/lib/modules/IliasInterfaceModule.php
@@ -19,10 +19,20 @@ class IliasInterfaceModule extends CorePlugin implements StudipModule, SystemPlu
Navigation::addItem('/admin/config/ilias_interface',
new Navigation(_('ILIAS-Schnittstelle'), 'dispatch.php/admin/ilias_interface'));
}
- if (Seminar_Perm::get()->have_perm('tutor') || (Seminar_Perm::get()->have_perm('autor') && array_key_exists('show_tools_page', $ilias_interface_config) && $ilias_interface_config['show_tools_page'])) {
- $ilias = new Navigation(_('ILIAS'), 'dispatch.php/my_ilias_accounts');
+ if (Seminar_Perm::get()->have_perm('tutor') || Seminar_Perm::get()->have_perm('autor')) {
+ $ilias = new Navigation(_('ILIAS'), 'dispatch.php/my_ilias_accounts/my_courses');
$ilias->setImage(Icon::create('ilias'));
$ilias->setDescription(_('Schnittstelle zu ILIAS'));
+ $ilias->addSubNavigation(
+ 'my_courses',
+ new Navigation(_('Meine Kurse'), 'dispatch.php/my_ilias_accounts/my_courses')
+ );
+ if (!empty($ilias_interface_config['show_tools_page'])) {
+ $ilias->addSubNavigation(
+ 'my_accounts',
+ new Navigation(_('Meine Lernobjekte und Accounts'), 'dispatch.php/my_ilias_accounts')
+ );
+ }
Navigation::addItem('/contents/my_ilias_accounts', $ilias);
}
}