'', 'description' => '', ]; public bool $isAllowed = false; public function mount(ProjectProposal $project): void { $this->project = $project; if (NostrAuth::check()) { $currentPubkey = NostrAuth::pubkey(); $currentPleb = \App\Models\EinundzwanzigPleb::query()->where('pubkey', $currentPubkey)->first(); if ( ( $currentPleb && $currentPleb->id === $project->einundzwanzig_pleb_id ) || in_array($currentPleb->npub, config('einundzwanzig.config.current_board')) ) { $this->isAllowed = true; $this->form = [ 'name' => $project->name, 'description' => $project->description, ]; } } } public function update(): void { $this->validate([ 'form.name' => 'required|string|max:255', 'form.description' => 'required|string', ]); $this->project->update([ 'name' => $this->form['name'], 'description' => $this->form['description'], ]); $this->redirectRoute('association.projectSupport.item', $this->project); } }; ?>
Bearbeite die Projektförderung und speichere deine Änderungen.
Du bist nicht berechtigt, die Projektförderung zu bearbeiten.