X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/c3e6cb49a67ee660c2eaeef53e15c85c19d805dd..b6546c4547eb47a06f80b6d0ffa474d3929602f9:/time_files.php diff --git a/time_files.php b/time_files.php index 40a0c506..c499b25c 100644 --- a/time_files.php +++ b/time_files.php @@ -82,8 +82,7 @@ if ($request->isPost()) { } } // isPost -$canEdit = !($time_rec['approved'] || $time_rec['timesheet_id'] || $time_rec['invoice_id']); -$smarty->assign('can_edit', $canEdit); +$smarty->assign('can_edit', $time_rec['can_edit']); $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('files', $files); $smarty->assign('title', $i18n->get('title.time_files'));