diff --git a/lib/Service/FormsService.php b/lib/Service/FormsService.php index 62a85799c..fbe769dfb 100644 --- a/lib/Service/FormsService.php +++ b/lib/Service/FormsService.php @@ -364,8 +364,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) {