public function listTrustedUsersAction(Request $request, Blog $blog)
    {
        if ($this->checkPermission('MODERATE', $blog->getResourceNode())
            || $this->checkPermission('EDIT', $blog->getResourceNode())) {
            $users = $this->commentManager->getTrustedUsers($blog);

            return new JsonResponse($users);
        } else {
            throw new AccessDeniedException();
        }
    }
public function listTrustedUsersAction(Request $request, Blog $blog)
    {
        if ($this->checkPermission('MODERATE', $blog->getResourceNode())
            || $this->checkPermission('EDIT', $blog->getResourceNode())) {
            $users = $this->commentManager->getTrustedUsers($blog);

            return new JsonResponse($users);
        } else {
            throw new AccessDeniedException();
        }
    }
public function listTrustedUsersAction ( Request $ request , Blog $ blog ) { if ( $ this -> checkPermission ( 'MODERATE' , $ blog -> getResourceNode ( ) ) || $ this -> checkPermission ( 'EDIT' , $ blog -> getResourceNode ( ) ) ) { $ users = $ this -> commentManager -> getTrustedUsers ( $ blog ) ; return new JsonResponse ( $ users ) ; } else { throw new AccessDeniedException ( ) ; } }
Get unpublished comments posts.

@EXT\Route("/moderation/trusted", name="apiv2_blog_comment_trusted")
@EXT\Method("GET")

@param Blog $blog

@return array
Get unpublished comments posts .