Pman/Login.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 16 Dec 2010 03:26:30 +0000 (11:26 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 16 Dec 2010 03:26:30 +0000 (11:26 +0800)
Pman/Login.php

index f655568..c4e892b 100644 (file)
@@ -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");
         }