aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2025-08-26 12:34:47 +0000
committerMoritz Strohm <strohm@data-quest.de>2025-08-26 12:34:47 +0000
commit9d79a296bdfd9c5a140797254469267cb25b3e51 (patch)
treef05bcbfe5794af03f545ab98306649579dde7941
parentbf917c0954e28e5ed13804dfb3fe1da6cf559b3c (diff)
fixed setting the "display all requests" checkbox while also allowing the booking plan to be accessible anonymously, if configured, re #3171
Merge request studip/studip!4462
-rw-r--r--app/controllers/resources/room_planning.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/resources/room_planning.php b/app/controllers/resources/room_planning.php
index 7032518..d90aa4a 100644
--- a/app/controllers/resources/room_planning.php
+++ b/app/controllers/resources/room_planning.php
@@ -140,7 +140,13 @@ class Resources_RoomPlanningController extends AuthenticatedController
);
if ($this->resource->requestable) {
- $this->display_all_requests = Request::bool('display_all_requests');
+ $this->display_all_requests = Request::bool(
+ 'display_all_requests',
+ $this->resource->userHasPermission(
+ $this->user,
+ 'autor'
+ )
+ );
} else {
$this->display_all_requests = false;
}