From 16b633f7fe9c4fa51e83d451475aac57f6d8c137 Mon Sep 17 00:00:00 2001 From: fsociety Date: Thu, 24 Oct 2024 19:50:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(project-support):=20update?= =?UTF-8?q?=20association=20status=20check=20for=20project=20proposal=20va?= =?UTF-8?q?lidation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project-support/form/[ProjectProposal:slug].blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/pages/association/project-support/form/[ProjectProposal:slug].blade.php b/resources/views/pages/association/project-support/form/[ProjectProposal:slug].blade.php index 9a64ba9..45ebeff 100644 --- a/resources/views/pages/association/project-support/form/[ProjectProposal:slug].blade.php +++ b/resources/views/pages/association/project-support/form/[ProjectProposal:slug].blade.php @@ -36,7 +36,7 @@ on([ 'nostrLoggedIn' => function ($pubkey) { $this->currentPubkey = $pubkey; $this->currentPleb = \App\Models\EinundzwanzigPleb::query()->where('pubkey', $pubkey)->first(); - if ($this->currentPleb->association_status->value < 3) { + if ($this->currentPleb->id !== $this->projectProposal->einundzwanzig_pleb_id) { return $this->js('alert("Du bist hierzu nicht berechtigt.")'); } $this->isAllowed = true;