DataObjects/Person.php
authoredward <edward@roojs.com>
Fri, 12 Aug 2016 10:29:37 +0000 (18:29 +0800)
committeredward <edward@roojs.com>
Fri, 12 Aug 2016 10:29:37 +0000 (18:29 +0800)
DataObjects/Person.php

index d2c61b0..db83ac4 100644 (file)
@@ -233,18 +233,18 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
     function verifyAuth()
     { 
         $ff= HTML_FlexyFramework::get();
-        if (!empty($ff->Pman['auth_comptype']) &&
-            (!$this->company_id || ($ff->Pman['auth_comptype'] != $this->company()->comptype))
-           ){
-            
-            $sesPrefix = $this->sesPrefix();
-       
-            $_SESSION[get_class($this)][$sesPrefix .'-auth'] = "";
-            
-            return false;
-            
-            //$ff->page->jerr("Login not permited to outside companies");
-        }
+//        if (!empty($ff->Pman['auth_comptype']) &&
+//            (!$this->company_id || ($ff->Pman['auth_comptype'] != $this->company()->comptype))
+//           ){
+//            
+//            $sesPrefix = $this->sesPrefix();
+//       
+//            $_SESSION[get_class($this)][$sesPrefix .'-auth'] = "";
+//            
+//            return false;
+//            
+//            //$ff->page->jerr("Login not permited to outside companies");
+//        }
         return true;
         
     }