🔧 fix(project-support): update association status check for project proposal validation

This commit is contained in:
fsociety
2024-10-24 19:50:02 +02:00
parent 6771aee148
commit 16b633f7fe

View File

@@ -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;