mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-27 21:30:16 +00:00
🎉 update(deps): bump dependencies for email-validator, pretty-package-versions, and others to latest versions
🔒 refactor(auth): streamline access control logic in election and project support forms ✨ add(styles): include partial styles for better layout management 🚀 feat(layout): integrate new styles partial into main layout for consistent design 🆕 create(partials): add styles partial to manage CSS styles more effectively
This commit is contained in:
@@ -36,10 +36,13 @@ on([
|
||||
$this->currentPubkey = $pubkey;
|
||||
$this->currentPleb = \App\Models\EinundzwanzigPleb::query()
|
||||
->where('pubkey', $pubkey)->first();
|
||||
if ($this->currentPubkey !== '0adf67475ccc5ca456fd3022e46f5d526eb0af6284bf85494c0dd7847f3e5033') {
|
||||
return $this->js('alert("Du bist nicht berechtigt, Wahlen zu bearbeiten.")');
|
||||
$logPubkeys = [
|
||||
'0adf67475ccc5ca456fd3022e46f5d526eb0af6284bf85494c0dd7847f3e5033',
|
||||
'430169631f2f0682c60cebb4f902d68f0c71c498fd1711fd982f052cf1fd4279',
|
||||
];
|
||||
if (in_array($this->currentPubkey, $logPubkeys, true)) {
|
||||
$this->isAllowed = true;
|
||||
}
|
||||
$this->isAllowed = true;
|
||||
},
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user