From: Alan Knowles Date: Thu, 16 Dec 2010 03:15:08 +0000 (+0800) Subject: Pman/Login.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=e1c44293a48112d033a3db4c915f1785105274c7 Pman/Login.php --- 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'); + } + + + }