DataObjects/Person.php
authorAlan Knowles <alan@akbkhome.com>
Wed, 1 Jun 2011 06:33:15 +0000 (14:33 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 1 Jun 2011 06:33:15 +0000 (14:33 +0800)
DataObjects/Person.php

index d40470c..84fa503 100644 (file)
@@ -120,9 +120,8 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
     /// check config 'auth_comptype' to see if we restrict access ..
     function verifyAuth()
     { 
-       
-        echo '<PRE>';print_r($this->company());exit;
-         if (!empty($ff->Pman['auth_comptype']) && $ff->Pman['auth_comptype'] != $this->company()->comptype) {
+        $ff= HTML_FlexyFramework::get();
+          if (!empty($ff->Pman['auth_comptype']) && $ff->Pman['auth_comptype'] != $this->company()->comptype) {
             $ff->page->jerr("Login not permited to outside companies");
         }
         return true;