From: Alan Knowles Date: Thu, 16 Dec 2010 03:26:30 +0000 (+0800) Subject: Pman/Login.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=60161a0307943589189b42d80c2ff58d10ddbfc4 Pman/Login.php --- diff --git a/Pman/Login.php b/Pman/Login.php index f655568..c4e892b 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -135,7 +135,7 @@ class Pman_Login extends Pman // first check they have perms to do this.. - if (!$au|| ($au->company_id_comptype != 'OWNER') || !$this->hasPerm('Core.Person', 'E')) { + if (!$au|| ($au->company()->comptype != 'OWNER') || !$this->hasPerm('Core.Person', 'E')) { $this->jerr("User switching not permitted"); }