X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=JavascriptError.php;h=11f4deb7cd38f71dd93d26869627cda656084f04;hp=ced68bdbb9fc0cda3f24dc1d71b3ddee4f6a2e3d;hb=1524f8b36295809a3eedd6da3c6494f8aa0d86f5;hpb=bdb81dac46ff802e044228b5443a8395d5b7a7ef diff --git a/JavascriptError.php b/JavascriptError.php index ced68bdb..11f4deb7 100644 --- a/JavascriptError.php +++ b/JavascriptError.php @@ -11,25 +11,22 @@ 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; return true; } - function get() + function get($v, $opts=array()) { die("invalid url"); } - function post() + function post($v) { $this->addEvent("JSERROR", false,$_REQUEST['msg']);