X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/fd0872d9e582113346fa1e93557f370286c5c9f2..7051fc8c0f68618bbaff5f8bb48d3478ce93836a:/notification_add.php diff --git a/notification_add.php b/notification_add.php index 6d0e4d31..e30970af 100644 --- a/notification_add.php +++ b/notification_add.php @@ -33,11 +33,15 @@ import('form.Form'); import('ttFavReportHelper'); import('ttNotificationHelper'); -// Access check. -if (!ttAccessAllowed('manage_advanced_settings') || !$user->isPluginEnabled('no')) { +// Access checks. +if (!ttAccessAllowed('manage_advanced_settings')) { header('Location: access_denied.php'); exit(); } +if (!$user->isPluginEnabled('no')) { + header('Location: feature_disabled.php'); + exit(); +} $fav_reports = ttFavReportHelper::getReports($user->id); @@ -82,7 +86,7 @@ if ($request->isPost()) { $next = tdCron::getNextOccurrence($cl_cron_spec, mktime()); if (ttNotificationHelper::insert(array( - 'team_id' => $user->team_id, + 'group_id' => $user->group_id, 'cron_spec' => $cl_cron_spec, 'next' => $next, 'report_id' => $cl_fav_report,