diff --git a/protected/modules/BreakGlass/controllers/DefaultController.php b/protected/modules/BreakGlass/controllers/DefaultController.php index 1f055cf0e8..33d849747c 100644 --- a/protected/modules/BreakGlass/controllers/DefaultController.php +++ b/protected/modules/BreakGlass/controllers/DefaultController.php @@ -20,6 +20,11 @@ public function accessRules() public function actionIndex() { + // If value doesn't exist redirect to homepage + if (!isset($_SESSION['breakglass_challengefor'])) { + $this->redirect('/'); + } + // Hide the sidebar. $this->fixedHotlist = false; $this->renderPatientPanel = false;