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 12:52:12 +0000 |
| commit | e8ac3d1fcf28b9f6b250085c78e33bcd73339cfa (patch) | |
| tree | 30ffcb920378926340f6be48c26818e4c8fd82fe /lib/models/Course.php | |
| parent | e84e9f286cc80c90a0b72ed65db960732a8b68e6 (diff) | |
Resolve "Teilnahmebeschränkte Veranstaltung: Teilnehmende können nicht manuell hinzugefügt werden"
Closes #5402
Merge request studip/studip!4060
Diffstat (limited to 'lib/models/Course.php')
| -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 |
