Sfoglia il codice sorgente

Update SettingsController, add 404 to import when disabled

Daniel Supernault 5 anni fa
parent
commit
ffccf0fd41
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      app/Http/Controllers/SettingsController.php

+ 2 - 0
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');
     }