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