X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=JavascriptError.php;h=11f4deb7cd38f71dd93d26869627cda656084f04;hp=d7aa56e7fa6045930ca5e3b481468d575c40710f;hb=443623f47935eb52acd65a3ff0d84eab1fd5a98b;hpb=dd7c630f12b344309cc0fb1c161bdd9bbd501b82 diff --git a/JavascriptError.php b/JavascriptError.php index d7aa56e7..11f4deb7 100644 --- a/JavascriptError.php +++ b/JavascriptError.php @@ -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"); } @@ -24,12 +21,12 @@ class Pman_Core_JavascriptError extends Pman { return true; } - function get() + function get($v, $opts=array()) { die("invalid url"); } - function post() + function post($v) { $this->addEvent("JSERROR", false,$_REQUEST['msg']);