Skip to content

Commit

Permalink
Merge pull request #139 from vatsimnetwork/development
Browse files Browse the repository at this point in the history
1.7.1 - bug fix
  • Loading branch information
lieselwd authored Sep 11, 2024
2 parents 89fe60c + d5b4d33 commit 3e88726
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Requests/RclMessageRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ public function withValidator($validator)
// if (config('app.rcl_auto_acknowledgement_enabled')) {
// $this->cpdlcService->sendMessage(author: DatalinkAuthorities::SYS, recipient: $this->callsign, recipientAccount: Auth::user(), message: sprintf(RclResponsesEnum::Contact->value, strtoupper(DatalinkAuthorities::OCEN->description())), caption: RclResponsesEnum::Contact->text());
// }
$validator->errors()->add('entry_time.range', 'You are either too early or too late to submit oceanic clearance. If you are entering the oceanic more than ' . str(config('app.rcl_upper_limit') - 1) . ' minutes from now, come back when within ' . str(config('app.rcl_upper_limit') - 1) . ' minutes. If your entry is within ' . str(config('app.rcl_lower_limit' + 1)) . ' minutes, or you have already entered, request clearance via voice.');
$lower = config('app.rcl_lower_limit') + 1;
$upper = config('app.rcl_upper_limit') - 1;
$validator->errors()->add('entry_time.range', 'You are either too early or too late to submit oceanic clearance. If you are entering the oceanic more than ' . $upper . ' minutes from now, come back when within ' . $upper . ' minutes. If your entry is within ' . $lower . ' minutes, or you have already entered, request clearance via voice.');
}
}
}
Expand Down

0 comments on commit 3e88726

Please sign in to comment.