diff options
author | msquare <msquare@notrademark.de> | 2017-12-18 11:25:26 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-12-18 11:25:26 +0100 |
commit | b60ad7ccfb7dff80728653ea4713bb7d389bc101 (patch) | |
tree | f8c419c85e0ee1906c0c1ae455f155fb25bf051f /includes/view/User_view.php | |
parent | 769d8c4af94e882947e7e1f0fe5938259eb8ff4b (diff) |
make shift entry comment private again
Diffstat (limited to 'includes/view/User_view.php')
-rw-r--r-- | includes/view/User_view.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php index 755bec08..04fb4d04 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -338,8 +338,12 @@ function User_view_myshift($shift, $user_source, $its_me) 'time' => date('H:i', $shift['start']) . ' - ' . date('H:i', $shift['end']), 'room' => $shift['Name'], 'shift_info' => $shift_info, - 'comment' => $shift['Comment'] + 'comment' => '' ]; + + if($its_me) { + $myshift['comment'] = $shift['Comment']; + } if ($shift['freeloaded']) { if (in_array('user_shifts_admin', $privileges)) { |