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
|
// 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
|
// Additional render data
|
||||||
$renderData = array_merge($renderData, [
|
$renderData = array_merge($renderData, [
|
||||||
|
|
||||||
'ban' => [
|
'ban' => [
|
||||||
'reason' => $ban['reason'],
|
'reason' => $ban['reason'],
|
||||||
'issued' => $ban['issued'],
|
'issued' => $ban['issued'],
|
||||||
'expires' => $ban['expires'],
|
'expires' => $ban['expires'],
|
||||||
'issuer' => (new User($ban['issuer'])),
|
'issuer' => (new User($ban['issuer'])),
|
||||||
],
|
],
|
||||||
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Users::logout();
|
|
||||||
|
|
||||||
// Initialise templating engine
|
// Initialise templating engine
|
||||||
$template = new Template();
|
$template = new Template();
|
||||||
|
|
||||||
|
|
Reference in a new issue