X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=tofile.php;h=62632fa979ee2ef76f0edcc3209bc2956e95cfea;hb=2bd9983978cf8d6263e27a531aeb33f365667e37;hp=abd1f278bd855ea0ed87479f690c53fb17da2cd4;hpb=a8a4278a6a87c600835890a10c774dfdc58e930a;p=timetracker.git diff --git a/tofile.php b/tofile.php index abd1f278..62632fa9 100644 --- a/tofile.php +++ b/tofile.php @@ -31,16 +31,17 @@ import('form.Form'); import('form.ActionForm'); import('ttReportHelper'); -// Access check. +// Access checks. if (!(ttAccessAllowed('view_own_reports') || ttAccessAllowed('view_reports'))) { header('Location: access_denied.php'); exit(); } +// End of access checks. // Use custom fields plugin if it is enabled. if ($user->isPluginEnabled('cf')) { require_once('plugins/CustomFields.class.php'); - $custom_fields = new CustomFields($user->team_id); + $custom_fields = new CustomFields($user->group_id); } // Report settings are stored in session bean before we get here.