import('ttNotificationHelper');
// Access check.
-if (!ttAccessCheck(right_manage_team)) {
+if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('no')) {
header('Location: access_denied.php');
exit();
}
$err->add($i18n->getKey('error.db'));
} else
$err->add($i18n->getKey('error.db'));
- } else if ($request->getParameter('btn_cancel')) {
+ } elseif ($request->getParameter('btn_cancel')) {
header('Location: notifications.php');
exit();
}
-} // POST
+} // isPost
$smarty->assign('notification_to_delete', $notification_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));