make shift entry comment private again

This commit is contained in:
msquare 2017-12-18 11:25:26 +01:00
parent 769d8c4af9
commit b60ad7ccfb
1 changed files with 5 additions and 1 deletions

View File

@ -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)) {