aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/models/Course.php3
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