+if (!$user->exists()) {
+ header('Location: access_denied.php'); // No users in subgroup.
+ exit();
+}
+if ($request->isPost()) {
+ $cl_fav_report_id = (int) $request->getParameter('fav_report');
+ if (!ttFavReportHelper::get($cl_fav_report_id)) {
+ header('Location: access_denied.php'); // Invalid fav report id in post.
+ exit();
+ }
+}
+// End of access checks.