mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 17:54:41 +02:00
Fix Logic Banned user
This commit is contained in:
parent
b5a9190ae7
commit
51c4909308
5 changed files with 10 additions and 8 deletions
|
@ -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'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue