X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/55c8f6a2bce9518c28337b18823b8300d1875ab8..7243c8da5a23936555f2a7adc1abf6f297a4e746:/time_delete.php diff --git a/time_delete.php b/time_delete.php index 4e2f99a8..0cdd8816 100644 --- a/time_delete.php +++ b/time_delete.php @@ -33,7 +33,7 @@ import('ttTimeHelper'); import('DateAndTime'); // Access check. -if (!ttAccessCheck(right_data_entry)) { +if (!ttAccessAllowed('track_own_time')) { header('Location: access_denied.php'); exit(); } @@ -57,7 +57,7 @@ if ($request->isPost()) { $uncompleted = ($time_rec['duration'] == '0:00'); if ($user->isDateLocked($item_date) && !$uncompleted) - $err->add($i18n->getKey('error.period_locked')); + $err->add($i18n->getKey('error.range_locked')); if ($err->no()) {