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

index db83ac4..d2c61b0 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;
         
     }