JavascriptError.php
[Pman.Core] / JavascriptError.php
index ced68bd..9e3c13b 100644 (file)
@@ -11,13 +11,10 @@ class Pman_Core_JavascriptError extends Pman {
         parent::getAuth(); // load company!
         $au = $this->getAuthUser();
        
-        if (!$au) {
+        if (!$au || !$au->pid()) {
             
             die("authenticated Users only");
         }
-        if (!$au->pid()   ) { // not set up yet..
-            die("authenticated Users only");
-        }
         
         
         $this->authUser = $au;