Skip to content

Commit

Permalink
feat: contact email change restart warning (#696)
Browse files Browse the repository at this point in the history
* feat: contact email change restart warning

* style: styleci
  • Loading branch information
Crypta-Eve authored Jan 25, 2025
1 parent 9c5278d commit c80e7a3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Http/Controllers/Configuration/SeatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,19 @@ public function postUpdateSettings(SeatSettings $request)
{

setting(['registration', $request->registration], true);
setting(['admin_contact', $request->admin_contact], true);
setting(['allow_tracking', $request->allow_tracking], true);
setting(['cleanup_data', $request->cleanup_data], true);
setting(['market_prices_region_id', $request->market_prices_region], true);
setting(['allow_user_character_unlink', $request->allow_user_character_unlink], true);

//check if we have changed the admin contact.
if ($request->admin_contact !== setting('admin_contact', true)){
setting(['admin_contact', $request->admin_contact], true);

return redirect()->back()
->with('warning', 'SeAT settings updated! Admin Contact has changed, please restart SeAT to apply this change!');
}

return redirect()->back()
->with('success', 'SeAT settings updated!');
}
Expand Down

0 comments on commit c80e7a3

Please sign in to comment.