From 9becae8d57551a8826609214dfc15a585366c62f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 9 Mar 2016 15:26:28 +0800 Subject: [PATCH] JavascriptError.php --- JavascriptError.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/JavascriptError.php b/JavascriptError.php index ced68bdb..9e3c13bb 100644 --- a/JavascriptError.php +++ b/JavascriptError.php @@ -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; -- 2.39.2