diff options
author | leaneb <lea-e@bluewin.ch> | 2016-11-26 11:39:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-26 11:39:47 +0100 |
commit | e1cc80ec411d63a4a309fa76a53776c80c10e6f7 (patch) | |
tree | 01753d802435861ebd7c0624bb7050cf24e8c24d /includes/controller/users_controller.php | |
parent | 67df8da061f74322863354490409666eb87935b0 (diff) | |
parent | 561e8ec36c50b2ace9fe7352dfb4e11f57d0e82e (diff) |
Merge pull request #2 from engelsystem/master
Merge Changes from esys Master to own Repo
Diffstat (limited to 'includes/controller/users_controller.php')
-rw-r--r-- | includes/controller/users_controller.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/controller/users_controller.php b/includes/controller/users_controller.php index 33abe764..26ca8d00 100644 --- a/includes/controller/users_controller.php +++ b/includes/controller/users_controller.php @@ -151,7 +151,7 @@ function user_controller() { } } - $shifts = Shifts_by_user($user_source); + $shifts = Shifts_by_user($user_source, in_array("user_shifts_admin", $privileges)); foreach ($shifts as &$shift) { // TODO: Move queries to model $shift['needed_angeltypes'] = sql_select("SELECT DISTINCT `AngelTypes`.* FROM `ShiftEntry` JOIN `AngelTypes` ON `ShiftEntry`.`TID`=`AngelTypes`.`id` WHERE `ShiftEntry`.`SID`='" . sql_escape($shift['SID']) . "' ORDER BY `AngelTypes`.`name`"); |