summaryrefslogtreecommitdiff
path: root/includes/controller/rooms_controller.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-12-28 12:11:35 +0100
committermsquare <msquare@notrademark.de>2016-12-28 12:11:35 +0100
commit0603d0dd4eee2e051c1cab235ef32b5e147495ad (patch)
treec72b079c2c12d8bdbf6e5f98401553504d90be28 /includes/controller/rooms_controller.php
parent363cc8f6b534ed6353ffe8acb020ba6e1d3ccff4 (diff)
remove unused code
Diffstat (limited to 'includes/controller/rooms_controller.php')
-rw-r--r--includes/controller/rooms_controller.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/controller/rooms_controller.php b/includes/controller/rooms_controller.php
index 7a4f543b..24bf5220 100644
--- a/includes/controller/rooms_controller.php
+++ b/includes/controller/rooms_controller.php
@@ -11,7 +11,7 @@ use Engelsystem\ShiftCalendarRenderer;
* View a room with its shifts.
*/
function room_controller() {
- global $privileges, $user;
+ global $privileges;
if (! in_array('view_rooms', $privileges)) {
redirect(page_link_to());
@@ -43,9 +43,9 @@ function room_controller() {
$shiftsFilterRenderer = new ShiftsFilterRenderer($shiftsFilter);
$shiftsFilterRenderer->enableDaySelection($days);
- $shifts = Shifts_by_ShiftsFilter($shiftsFilter, $user);
- $needed_angeltypes = NeededAngeltypes_by_ShiftsFilter($shiftsFilter, $user);
- $shift_entries = ShiftEntries_by_ShiftsFilter($shiftsFilter, $user);
+ $shifts = Shifts_by_ShiftsFilter($shiftsFilter);
+ $needed_angeltypes = NeededAngeltypes_by_ShiftsFilter($shiftsFilter);
+ $shift_entries = ShiftEntries_by_ShiftsFilter($shiftsFilter);
return [
$room['Name'],