X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/30bec134aac46efe3cdd5371de46598a68138c46..a4697cccdffc187c38d6560c5824fe344e59f5be:/timesheet_view.php diff --git a/timesheet_view.php b/timesheet_view.php index df28e306..9b5b4cdf 100644 --- a/timesheet_view.php +++ b/timesheet_view.php @@ -59,7 +59,7 @@ $totals = ttReportHelper::getTotals($options); // Determine which controls to show and obtain date for them. $showSubmit = !$timesheet['submit_status']; if ($showSubmit) $approvers = ttTimesheetHelper::getApprovers($timesheet['user_id']); -$canApprove = $user->can('approve_timesheets') || $user->can('approve_all_timesheets'); +$canApprove = $user->can('approve_timesheets') || $user->can('approve_own_timesheets'); $showApprove = $timesheet['submit_status'] && $timesheet['approval_status'] == null; // Add a form with controls.