Skip to content

Commit

Permalink
Update app/Http/Requests/RclMessageRequest.php
Browse files Browse the repository at this point in the history
Co-authored-by: William McKinnerney <[email protected]>
  • Loading branch information
lieselwd and williammck authored Oct 27, 2024
1 parent e4d0ab8 commit 3c6b816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Requests/RclMessageRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function withValidator($validator)
/** Entry fix time requirement */
if (config('app.rcl_time_constraints_enabled') && strlen($this->entry_time) == 4) {
if (!$this->entryTimeWithinRange($this->entry_time)) {
if (config('app.rcl_auto_acknowledgement_enabled') && DatalinkAuthority::whereId($this->target_datalink_authority_id)->first()->auto_acknowledge_participant) {
if (config('app.rcl_auto_acknowledgement_enabled') && DatalinkAuthority::find($this->target_datalink_authority_id)->auto_acknowledge_participant) {
$this->cpdlcService->sendMessage(author: DatalinkAuthority::find('SYST'), recipient: $this->callsign, recipientAccount: Auth::user(), message: sprintf(RclResponsesEnum::Contact->value, strtoupper(DatalinkAuthorities::OCEN->description())), caption: RclResponsesEnum::Contact->text());
}
$lower = config('app.rcl_lower_limit') + 1;
Expand Down

0 comments on commit 3c6b816

Please sign in to comment.