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:
fsociety
2024-10-01 14:42:13 +02:00
parent e0bb99fc4f
commit c0e4a4bb98
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;