public function checkLink() {
    $context = $this->linkManipulator->parseRequest($this->requestStack->getCurrentRequest());
    $account = $this->currentUser;

    return $this->accessHelper->canGeneratePdfFromContext($context, $account);
  }