mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-13 05:26:47 +00:00
🚧 fix(association): update authorization check for project proposal based on currentPleb membership and pubkey
This commit is contained in:
@@ -37,7 +37,7 @@ on([
|
|||||||
$this->currentPleb = \App\Models\EinundzwanzigPleb::query()->where('pubkey', $pubkey)->first();
|
$this->currentPleb = \App\Models\EinundzwanzigPleb::query()->where('pubkey', $pubkey)->first();
|
||||||
if (
|
if (
|
||||||
$this->currentPleb->id !== $this->projectProposal->einundzwanzig_pleb_id
|
$this->currentPleb->id !== $this->projectProposal->einundzwanzig_pleb_id
|
||||||
|| !in_array($this->currentPleb->npub, config('einundzwanzig.config.current_board'), true)
|
&& !in_array($this->currentPleb->npub, config('einundzwanzig.config.current_board'), true)
|
||||||
) {
|
) {
|
||||||
return $this->js('alert("Du bist hierzu nicht berechtigt.")');
|
return $this->js('alert("Du bist hierzu nicht berechtigt.")');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user