mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-14 06:36:46 +00:00
feat: change conditional checks for association status and public key
Swapped the conditional check for association status and public key in both admin.blade.php and index.blade.php. This change ensures that the correct condition is evaluated in the respective files.
This commit is contained in:
@@ -28,7 +28,7 @@ on([
|
||||
$this->currentPubkey = $pubkey;
|
||||
$this->currentPleb = \App\Models\EinundzwanzigPleb::query()
|
||||
->where('pubkey', $pubkey)->first();
|
||||
if($this->currentPleb->association_status->value < 3) {
|
||||
if ($this->currentPubkey !== '0adf67475ccc5ca456fd3022e46f5d526eb0af6284bf85494c0dd7847f3e5033') {
|
||||
return redirect()->route('association.profile');
|
||||
}
|
||||
$this->isAllowed = true;
|
||||
|
||||
@@ -22,7 +22,7 @@ on([
|
||||
$this->currentPubkey = $pubkey;
|
||||
$this->currentPleb = \App\Models\EinundzwanzigPleb::query()
|
||||
->where('pubkey', $pubkey)->first();
|
||||
if($this->currentPubkey !== '0adf67475ccc5ca456fd3022e46f5d526eb0af6284bf85494c0dd7847f3e5033') {
|
||||
if($this->currentPleb->association_status->value < 3) {
|
||||
return redirect()->route('association.profile');
|
||||
}
|
||||
$this->isAllowed = true;
|
||||
|
||||
Reference in New Issue
Block a user