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;