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