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");
}
return true;
}
-
function get()
+ {
+ die("invalid url");
+ }
+
+ function post()
{
$this->addEvent("JSERROR", false,$_REQUEST['msg']);