Skip to content

Commit

Permalink
Breakglass - redirect to HP if breakglass value doesn't exist (#7317)
Browse files Browse the repository at this point in the history
* Breakglass - redirect to HP if breakglass value doesn't exist

* [CodeFactor] Apply fixes to commit 857c3d0

Co-authored-by: codefactor-io <[email protected]>
Co-authored-by: Piyush Gupta <[email protected]>
Co-authored-by: Grant Morphett <[email protected]>
  • Loading branch information
4 people authored Feb 3, 2022
1 parent 8a39cf8 commit db586bf
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit db586bf

Please sign in to comment.