accessOnlyOwn($result); } protected function accessOnlyOwn(&$result) { $result['whereClause'][] = array( 'userId' => $this->getUser()->id ); } }