From d0d22ad7ff17a370cb8dd746c912583c146b7e44 Mon Sep 17 00:00:00 2001
From: Thomas Hackl <hackl@data-quest.de>
Date: Wed, 12 Jan 2022 14:37:22 +0100
Subject: [PATCH] show "exit course" action only for non-groupable courses,
 fixes #532

---
 app/views/my_courses/_course.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/my_courses/_course.php b/app/views/my_courses/_course.php
index cea4199121f..9ec7d063f4c 100644
--- a/app/views/my_courses/_course.php
+++ b/app/views/my_courses/_course.php
@@ -67,7 +67,7 @@
                         <?= Icon::create('door-leave+decline', 'inactive', ['title' => _("Die Teilnahme ist bindend. Bitte wenden Sie sich an die Lehrenden.")])->asImg(20) ?>
                     </a>
                     <?
-                else : ?>
+                elseif (!$values['is_group']) : ?>
                     <a href="<?= $controller->link_for('my_courses/decline', $course['seminar_id'], ['cmd' => 'suppose_to_kill']) ?>">
                         <?= Icon::create('door-leave', 'inactive', ['title' => _("aus der Veranstaltung abmelden")])->asImg(20) ?>
                     </a>
-- 
GitLab