Skip to content

Commit

Permalink
fix staff login redirect loop when system is offline
Browse files Browse the repository at this point in the history
  • Loading branch information
cengizonkal committed Apr 11, 2022
1 parent 1a64b84 commit 38b8f53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scp/staff.inc.php
Expand Up @@ -89,6 +89,8 @@ function staffLoginPage($msg) {

//Staff are not allowed to login in offline mode!!
if(!$ost->isSystemOnline() || $ost->isUpgradePending()) {
//logout current user if system is offline
$thisstaff->logOut();
staffLoginPage(__('System Offline'));
exit;
}
Expand Down

0 comments on commit 38b8f53

Please sign in to comment.