diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-03-19 14:22:38 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-03-19 14:22:46 +0100 |
| commit | 8848a12387491709d433edeb325111d34b3954cd (patch) | |
| tree | 1802a409fc6dc6aeccd2184da8609579cd79a3a8 /app/controllers/course/avatar.php | |
| parent | a82d524c0d61ce6f766deacfa50fc9afcd3e5cea (diff) | |
resurrect admin course management select widget on relevant controllers, fixes #6379biest-6379
Diffstat (limited to 'app/controllers/course/avatar.php')
| -rw-r--r-- | app/controllers/course/avatar.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/course/avatar.php b/app/controllers/course/avatar.php index b5b34d2..9063b51 100644 --- a/app/controllers/course/avatar.php +++ b/app/controllers/course/avatar.php @@ -13,5 +13,10 @@ class Course_AvatarController extends AuthenticatedController Navigation::activateItem('/course/admin/avatar'); $avatar = CourseAvatar::getAvatar($this->course_id); $this->avatar_url = $avatar->getURL(Avatar::NORMAL); + + if ($GLOBALS['perm']->have_studip_perm('admin', $this->course_id)) { + $widget = new CourseManagementSelectWidget(); + Sidebar::get()->addWidget($widget); + } } -}
\ No newline at end of file +} |
