public function loadContentInfoByRemoteId($remoteId) { $contentInfo = $this->internalLoadContentInfo($remoteId, true); if (!$this->repository->canUser('content', 'read', $contentInfo)) { throw new UnauthorizedException('content', 'read', array('remoteId' => $remoteId)); } return $contentInfo; }