Fix Logic Banned user

This commit is contained in:
Ibnu Maksum
2024-05-17 19:05:16 +07:00
parent b5a9190ae7
commit 51c4909308
5 changed files with 10 additions and 8 deletions

View File

@ -163,7 +163,7 @@ class User
$id = User::getID();
}
$d = ORM::for_table('tbl_customers')->find_one($id);
if ($d['status'] != 'Banned') {
if ($d['status'] == 'Banned') {
_alert(Lang::T('This account status') . ' : ' . Lang::T($d['status']), 'danger', "logout");
}
if (empty($d['username'])) {