diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-08-26 14:54:25 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2024-09-02 11:45:08 +0200 |
| commit | e84d51899cbb3cc89ec828d58b0835e8b8757676 (patch) | |
| tree | 688ce340a837bcbb2b0042b924d2e596940b68bc /app/controllers/course/timesrooms.php | |
| parent | fa2034cca7372d379cf2bd86adb0604b181dd41e (diff) | |
added code improvementstic-04387
Diffstat (limited to 'app/controllers/course/timesrooms.php')
| -rw-r--r-- | app/controllers/course/timesrooms.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/course/timesrooms.php b/app/controllers/course/timesrooms.php index 6837f88..ab2acc6 100644 --- a/app/controllers/course/timesrooms.php +++ b/app/controllers/course/timesrooms.php @@ -535,7 +535,7 @@ class Course_TimesroomsController extends AuthenticatedController $message_links = []; if ($course instanceof Course) { - if ($course->isEditableByUser($GLOBALS['user']->id)) { + if ($course->isEditableByUser()) { //Link to the times/rooms page: $link = new LinkElement( _('Direkt zur Veranstaltung'), @@ -543,7 +543,7 @@ class Course_TimesroomsController extends AuthenticatedController Icon::create('link-intern') ); $message_links[] = $link->render(); - } elseif ($course->isAccessibleToUser($GLOBALS['user']->id)) { + } elseif ($course->isAccessibleToUser()) { //Link to the details page: $link = new LinkElement( _('Direkt zur Veranstaltung'), |
