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" );
return true;
}
- function get()
+ function get($v, $opts=array())
{
- $this->post();
+ $this->post($v);
}
- function post()
+ function post($v)
{
if (!$this->hasPerm( 'Core.Groups','E')) { // editing groups..
$this->jerr("PERMISSION DENIED");