diff --git a/lib/Service/FormsService.php b/lib/Service/FormsService.php index d9be9a3c8..558588471 100644 --- a/lib/Service/FormsService.php +++ b/lib/Service/FormsService.php @@ -363,8 +363,6 @@ public function canSubmit(Form $form): bool { * @return boolean */ private function hasPublicLink(Form $form): bool { - $access = $form->getAccess(); - $shareEntities = $this->shareMapper->findByForm($form->getId()); foreach ($shareEntities as $shareEntity) { if ($shareEntity->getShareType() === IShare::TYPE_LINK) {