Ojs\ApiBundle\Controller\Admin\UserRestController::getUserAction PHP 메소드

getUserAction() 공개 메소드

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