From 3d1f58d14729b2c7d466272b25b133958ce79b14 Mon Sep 17 00:00:00 2001
From: Moritz Strohm <strohm@data-quest.de>
Date: Fri, 16 Sep 2022 12:53:44 +0000
Subject: [PATCH] fixed code error, closes #1545

Merge request studip/studip!963
---
 app/controllers/resources/room_planning.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/resources/room_planning.php b/app/controllers/resources/room_planning.php
index aad1f55b553..fb0748debc8 100644
--- a/app/controllers/resources/room_planning.php
+++ b/app/controllers/resources/room_planning.php
@@ -304,7 +304,7 @@ class Resources_RoomPlanningController extends AuthenticatedController
                     'javascript:void(window.print());',
                     Icon::create('print')
                 );
-                if ($this->resource->userHasPermission($this->user)) {
+                if ($this->resource->userHasPermission($current_user)) {
                     if ($this->resource instanceof Room) {
                         $actions->addLink(
                             _('Individuelle Druckansicht'),
-- 
GitLab