X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Ftime_edit.php;h=a1a56e37ce22375bf112c55c554c38d936c648d2;hb=a575a9147976a06263d8a7eae006d6ba3372446e;hp=eff9b3358bc8fc971cb73ae5694b5994f5a33a49;hpb=0a7886b373c91ef0c2c41307f81177d043c807be;p=timetracker.git diff --git a/mobile/time_edit.php b/mobile/time_edit.php index eff9b335..a1a56e37 100644 --- a/mobile/time_edit.php +++ b/mobile/time_edit.php @@ -34,19 +34,19 @@ import('ttClientHelper'); import('ttTimeHelper'); import('DateAndTime'); -// Access check. +// Access checks. if (!ttAccessAllowed('track_own_time')) { header('Location: access_denied.php'); exit(); } $cl_id = (int)$request->getParameter('id'); -// Get the time record we are editing. $time_rec = ttTimeHelper::getRecord($cl_id, $user->getActiveUser()); if (!$time_rec || $time_rec['invoice_id']) { // Prohibit editing not ours or invoiced records. header('Location: access_denied.php'); exit(); } +// End of access checks. // Use custom fields plugin if it is enabled. if ($user->isPluginEnabled('cf')) {