mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-13 05:26:47 +00:00
🚧 refactor(news): remove authorization check for association status in news index view
This commit is contained in:
@@ -35,9 +35,6 @@ on([
|
|||||||
'nostrLoggedIn' => function ($pubkey) {
|
'nostrLoggedIn' => function ($pubkey) {
|
||||||
$this->currentPubkey = $pubkey;
|
$this->currentPubkey = $pubkey;
|
||||||
$this->currentPleb = \App\Models\EinundzwanzigPleb::query()->where('pubkey', $pubkey)->first();
|
$this->currentPleb = \App\Models\EinundzwanzigPleb::query()->where('pubkey', $pubkey)->first();
|
||||||
if ($this->currentPleb->association_status->value < 2) {
|
|
||||||
return $this->js('alert("Du bist hierzu nicht berechtigt.")');
|
|
||||||
}
|
|
||||||
if (in_array($this->currentPleb->npub, config('einundzwanzig.config.current_board'), true)) {
|
if (in_array($this->currentPleb->npub, config('einundzwanzig.config.current_board'), true)) {
|
||||||
$this->canEdit = true;
|
$this->canEdit = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user