From 1bfa44820b05d316a70eeffd0395d79df6091739 Mon Sep 17 00:00:00 2001 From: Thomas Hackl Date: Fri, 21 Mar 2025 12:52:12 +0000 Subject: =?UTF-8?q?Resolve=20"Teilnahmebeschr=C3=A4nkte=20Veranstaltung:?= =?UTF-8?q?=20Teilnehmende=20k=C3=B6nnen=20nicht=20manuell=20hinzugef?= =?UTF-8?q?=C3=BCgt=20werden"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #5402 Merge request studip/studip!4060 --- lib/models/Course.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/models/Course.php b/lib/models/Course.php index ae6ad69..e93a14f 100644 --- a/lib/models/Course.php +++ b/lib/models/Course.php @@ -1124,7 +1124,8 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe //Background: Lecturers may enforce the entry of a student, but the latter must not //override the checks. if ( - $permission_level === 'autor' + !$GLOBALS['perm']->have_studip_perm('tutor', $this->id) + && $permission_level === 'autor' && $regard_contingent && $this->isAdmissionEnabled() && $this->getFreeSeats() < 1 -- cgit v1.0