X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman%2FLogin.php;h=7fc99efca1b66e4410da6d9c2cf5127cbf56426b;hb=e1c44293a48112d033a3db4c915f1785105274c7;hp=f287ac59432f29d4e4dbd1ad51ffd83892aa4780;hpb=f2fd7bfa326bd23da924d39d1460293a48a03d23;p=Pman.Base diff --git a/Pman/Login.php b/Pman/Login.php index f287ac5..7fc99ef 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -130,6 +130,15 @@ class Pman_Login extends Pman $this->jerr("User switching not permitted"); } + $tbl = empty($ff->Pman['authTable']) ? 'Person' : $ff->Pman['authTable']; + $u = DB_DataObject::factory($tbl); + $u->get($id); + if (!$u->active()) { + $this->jerr('Account disabled'); + } + + + }