DataObjects/Core_domain.php
[Pman.Core] / JavascriptError.php
index d7aa56e..9e3c13b 100644 (file)
@@ -11,12 +11,9 @@ class Pman_Core_JavascriptError extends Pman {
         parent::getAuth(); // load company!
         $au = $this->getAuthUser();
        
-        if (!$au) {
+        if (!$au || !$au->pid()) {
             
-            $this->jerr("Not authenticated", array('authFailure' => true));
-        }
-        if (!$au->pid()   ) { // not set up yet..
-            $this->jerr("Not authenticated", array('authFailure' => true));
+            die("authenticated Users only");
         }