parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au) {
- $this->jerr("Not authenticated", array('authFailure' => true));
+ $this->jerror("LOGIN-NOAUTH", "Not authenticated", array('authFailure' => true));
}
if ($au->company()->comptype != 'OWNER') {
$this->jerr("Permission Denied" );
}
- function post()
+ function post($v)
{
if (empty($_POST['group_id']) || (int)$_POST['group_id'] < 1) {
$this->jerr("NO GROUP");