X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/02649cd1c0f39d44fd21e0ddc9f5e5eb428409c8..a58bca2afc5d6457d07c886c7c20fb10c941752a:/cron.php diff --git a/cron.php b/cron.php index 473f27ef..1b586cf0 100644 --- a/cron.php +++ b/cron.php @@ -66,6 +66,12 @@ while ($val = $res->fetchRow()) { $user = new ttUser(null, $options['user_id']); if (!$user->id) continue; // Skip not found user. + // TODO: write a new function ttFavReportHelper::adjustReportOptions that will use + // a $user objected recycled above. Put user handling below into it. + // Also adjust all other options for potentially changed user access rights and group properties. + // For example, tracking mode may have changed, but fav report options are still old... + // This needs to be fixed. + // Special handling of the NULL $options['users'] field (this used to mean "all users"). if (!$options['users']) { if ($user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()) {