public getUserAction ( integer $id ) : array | ||
$id | integer | the User id |
return | array |
public function getUserAction($id)
{
$entity = $this->getOr404($id);
if (!$this->isGranted('VIEW', $entity)) {
throw new AccessDeniedException();
}
return $entity;
}