Removed auto-logout from ban page
This commit is contained in:
parent
edb7a9e15d
commit
32eb5bcc00
1 changed files with 1 additions and 5 deletions
|
@ -193,21 +193,17 @@ if (!defined('SAKURA_NO_TPL')) {
|
|||
}
|
||||
|
||||
// Ban checking
|
||||
if ($authCheck && $ban = Bans::checkBan($currentUser->id())) {
|
||||
if ($authCheck && !in_array($_SERVER['PHP_SELF'], ['/authenticate.php']) && $ban = Bans::checkBan($currentUser->id())) {
|
||||
// Additional render data
|
||||
$renderData = array_merge($renderData, [
|
||||
|
||||
'ban' => [
|
||||
'reason' => $ban['reason'],
|
||||
'issued' => $ban['issued'],
|
||||
'expires' => $ban['expires'],
|
||||
'issuer' => (new User($ban['issuer'])),
|
||||
],
|
||||
|
||||
]);
|
||||
|
||||
Users::logout();
|
||||
|
||||
// Initialise templating engine
|
||||
$template = new Template();
|
||||
|
||||
|
|
Reference in a new issue