X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/fd0872d9e582113346fa1e93557f370286c5c9f2..2352b1096ea3b8301f06d3e5b072022ae08a2f73:/notification_edit.php diff --git a/notification_edit.php b/notification_edit.php index 43179828..69535815 100644 --- a/notification_edit.php +++ b/notification_edit.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(); +} $notification_id = (int) $request->getParameter('id'); $fav_reports = ttFavReportHelper::getReports($user->id); @@ -90,7 +94,7 @@ if ($request->isPost()) { if (ttNotificationHelper::update(array( 'id' => $notification_id, - 'team_id' => $user->team_id, + 'group_id' => $user->group_id, 'cron_spec' => $cl_cron_spec, 'next' => $next, 'report_id' => $cl_fav_report,