DataObjects/Person.php
authorEdward <edward@roojs.com>
Thu, 11 Jun 2015 03:46:57 +0000 (11:46 +0800)
committerEdward <edward@roojs.com>
Thu, 11 Jun 2015 03:46:57 +0000 (11:46 +0800)
DataObjects/Person.php

index c4984c6..c654413 100644 (file)
@@ -237,12 +237,10 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
             (!$this->company_id || ($ff->Pman['auth_comptype'] != $this->company()->comptype))
            ){
             
-            // force a logout - without a check on the isAuth - as this is called from there..
-            $db = $this->getDatabaseConnection();
-            $appname = empty($ff->appNameShort) ? $ff->project : $ff->appNameShort;
-            $sesPrefix =$appname.'-' .get_class($this) .'-'.$db->dsn['database'] ;
+            $sesPrefix = $this->sesPrefix();
        
             $_SESSION[get_class($this)][$sesPrefix .'-auth'] = "";
+            
             return false;
             
             $ff->page->jerr("Login not permited to outside companies");