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);
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,