Update SettingsController, add 404 to import when disabled

This commit is contained in:
Daniel Supernault 2020-05-25 21:33:00 -06:00
parent a834b1106e
commit ffccf0fd41
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 2 additions and 0 deletions

View File

@ -77,11 +77,13 @@ class SettingsController extends Controller
public function dataImport()
{
abort_if(!config('pixelfed.import.instagram.enabled'), 404);
return view('settings.import.home');
}
public function dataImportInstagram()
{
abort_if(!config('pixelfed.import.instagram.enabled'), 404);
return view('settings.import.instagram.home');
}