Skip to content

Commit

Permalink
feat: contact email change restart warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Crypta-Eve committed Jan 25, 2025
1 parent 9c5278d commit 2e8385b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Http/Controllers/Configuration/SeatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,18 @@ 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 2e8385b

Please sign in to comment.