JavascriptError.php
authorAlan Knowles <alan@roojs.com>
Wed, 9 Mar 2016 07:26:28 +0000 (15:26 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 Mar 2016 07:26:28 +0000 (15:26 +0800)
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;