X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=week.php;h=f1dc7889342fd7a6e9260b77162259312387df97;hb=e60508fb73602f118d17c06a9103532da05306c5;hp=e26aa1192c44c6f9a74147e66a94a2d1f1fd5572;hpb=fd0872d9e582113346fa1e93557f370286c5c9f2;p=timetracker.git diff --git a/week.php b/week.php index e26aa119..f1dc7889 100644 --- a/week.php +++ b/week.php @@ -38,11 +38,15 @@ import('ttClientHelper'); import('ttTimeHelper'); import('DateAndTime'); -// Access check. -if (!ttAccessAllowed('track_own_time') || !$user->isPluginEnabled('wv')) { +// Access checks. +if (!(ttAccessAllowed('track_own_time') || ttAccessAllowed('track_time'))) { header('Location: access_denied.php'); exit(); } +if (!$user->isPluginEnabled('wv')) { + header('Location: feature_disabled.php'); + exit(); +} // Initialize and store date in session. $cl_date = $request->getParameter('date', @$_SESSION['date']);