JavascriptError.php
[Pman.Core] / JavascriptError.php
index d0139ac..50b0fa8 100644 (file)
@@ -6,7 +6,22 @@ class Pman_Core_JavascriptError extends Pman {
     
     function getAuth()
     {
-        // authed users only...
+        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;
     }
     
+    
+    
+    
 }