diff options
| author | Arne Schröder, M. A. <schroeder@data-quest.de> | 2024-12-20 10:55:36 +0000 |
|---|---|---|
| committer | Thomas Hackl <hackl@data-quest.de> | 2024-12-20 10:55:36 +0000 |
| commit | 02990f73bd61f7dbccd9ca9971d1aee72130d8e1 (patch) | |
| tree | e25db36936efb4a4b0126b7b15132f9f326540f6 /lib/modules/IliasInterfaceModule.php | |
| parent | 0cdee342af4632ba305236591dede586c7b20282 (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.php | 14 |
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); } } |
