forked from kevinowino869/mitrobill
Fix Logic Banned user
This commit is contained in:
@ -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'])) {
|
||||
|
Reference in New Issue
Block a user