Skip to content

Commit

Permalink
🔧 Redirecting on banned page
Browse files Browse the repository at this point in the history
Replaced Session based ban check with db check
  • Loading branch information
anditv21 committed Oct 10, 2023
1 parent 2174a5b commit cdff569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/banned.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if (!Session::isLogged()) {
Util::redirect("/auth/login.php");
}
if (!Session::isBanned()) {
if (!Util::banCheck()) {
Util::redirect("/index.php");
}

Expand Down

0 comments on commit cdff569

Please sign in to comment.