X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=d75854c831e7bb2ea80da92aa82b116a00a1cbd3;hb=81ca36ba9b5294ecb417d9b82196752211c652b7;hp=18979fe22b0f5500213688fad05aef50c39e730b;hpb=e7b081c97f2f2cfa69ca8df99afdeb8506eff726;p=timetracker.git diff --git a/time.php b/time.php index 18979fe2..d75854c8 100644 --- a/time.php +++ b/time.php @@ -34,13 +34,6 @@ import('ttClientHelper'); import('ttTimeHelper'); import('DateAndTime'); -// This is a now removed check whether user browser supports cookies. -// if (!isset($_COOKIE['tt_PHPSESSID'])) { - // This test gives a false-positive if user goes directly to this page - // as from a desktop shortcut (on first request only). - // die ("Your browser's cookie functionality is turned off. Please turn it on."); -// } - // Access checks. if (!(ttAccessAllowed('track_own_time') || ttAccessAllowed('track_time'))) { header('Location: access_denied.php'); @@ -51,9 +44,10 @@ if ($user->behalf_id && (!$user->can('track_time') || !$user->checkBehalfId())) exit(); } if (!$user->behalf_id && !$user->can('track_own_time') && !$user->adjustBehalfId()) { - header('Location: access_denied.php'); // Trying as self, but no right for self, and noone to view on behalf. + header('Location: access_denied.php'); // Trying as self, but no right for self, and noone to work on behalf. exit(); } +// End of access checks. // Initialize and store date in session. $cl_date = $request->getParameter('date', @$_SESSION['date']);