DatabaseColumns.php
authorAlan Knowles <alan@roojs.com>
Thu, 22 May 2014 07:37:41 +0000 (15:37 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 22 May 2014 07:37:41 +0000 (15:37 +0800)
DatabaseColumns.php

index 78c5e3b..3810c1d 100644 (file)
@@ -3,5 +3,20 @@
 class Pman_Core_DatabaseColumns extends Pman {
     
     
-    
+    function getAuth()
+    {
+        parent::getAuth(); // load company!
+        $au = $this->getAuthUser();
+       
+        if (!$au) {  
+            $this->jerr("Not authenticated", array('authFailure' => true));
+        }
+        if (!$au->pid()   ) { // not set up yet..
+            $this->jerr("Not authenticated", array('authFailure' => true));
+        }
+        
+        
+        $this->authUser = $au;
+        return true;
+    }
 }
\ No newline at end of file