mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-02-01 12:23:17 +00:00
🚫 fix(permissions): update unauthorized access alerts for member and election management pages
This commit is contained in:
@@ -37,7 +37,7 @@ on([
|
||||
$this->currentPleb = \App\Models\EinundzwanzigPleb::query()
|
||||
->where('pubkey', $pubkey)->first();
|
||||
if ($this->currentPubkey !== '0adf67475ccc5ca456fd3022e46f5d526eb0af6284bf85494c0dd7847f3e5033') {
|
||||
return redirect()->route('association.profile');
|
||||
return $this->js('alert("Du bist nicht berechtigt, Wahlen zu bearbeiten.")');
|
||||
}
|
||||
$this->isAllowed = true;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user