authUser || (!empty($this->person_id) && $this->person_id != $roo->authUser->id) ) { $roo->jerr('Access Dennied'); } } function beforeUpdate($old, $q, $roo) { if( !$roo->authUser || (!empty($this->person_id) && $this->person_id != $roo->authUser->id) ) { $roo->jerr('Access Dennied'); } } }