getUser($request), $block)) { throw new AuthorizationFailedException(); } $resources = BlockComment::findBySql('block_id = ?', [$block->id]); return $this->getContentResponse($resources); } }