diff options
author | msquare <msquare@notrademark.de> | 2016-12-28 12:11:35 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-12-28 12:11:35 +0100 |
commit | 0603d0dd4eee2e051c1cab235ef32b5e147495ad (patch) | |
tree | c72b079c2c12d8bdbf6e5f98401553504d90be28 /includes/controller/rooms_controller.php | |
parent | 363cc8f6b534ed6353ffe8acb020ba6e1d3ccff4 (diff) |
remove unused code
Diffstat (limited to 'includes/controller/rooms_controller.php')
-rw-r--r-- | includes/controller/rooms_controller.php | 8 |
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'], |