From 60161a0307943589189b42d80c2ff58d10ddbfc4 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 16 Dec 2010 11:26:30 +0800 Subject: [PATCH] Pman/Login.php --- Pman/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.2