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");
}