diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 89f504079..7b59132fe 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -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'); }