From 2ea74094a3539ee091083f281b93969e43ca8afa Mon Sep 17 00:00:00 2001 From: Christian Hartmann Date: Fri, 3 Jan 2025 15:45:48 +0100 Subject: [PATCH] remove unused access variable in hasPublicLink method Signed-off-by: Christian Hartmann --- lib/Service/FormsService.php | 2 -- 1 file changed, 2 deletions(-) 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) {