diff options
| author | Thomas Hackl <hackl@data-quest.de> | 2025-03-21 12:52:12 +0000 |
|---|---|---|
| committer | Thomas Hackl <hackl@data-quest.de> | 2025-03-21 13:52:41 +0100 |
| commit | 1bfa44820b05d316a70eeffd0395d79df6091739 (patch) | |
| tree | a6ba98deb76d735928bc2dcee92083fa420560a6 /lib | |
| parent | a2518fafa65c2ebc2f26f6973dcaa85bc317499e (diff) | |
Resolve "Teilnahmebeschränkte Veranstaltung: Teilnehmende können nicht manuell hinzugefügt werden"
Closes #5402
Merge request studip/studip!4060
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/models/Course.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
