Pārlūkot izejas kodu

Update ImportController

Daniel Supernault 6 gadi atpakaļ
vecāks
revīzija
06fe1f0669
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      app/Http/Controllers/ImportController.php

+ 4 - 0
app/Http/Controllers/ImportController.php

@@ -11,6 +11,10 @@ class ImportController extends Controller
     public function __construct()
     public function __construct()
     {
     {
         $this->middleware('auth');
         $this->middleware('auth');
+
+        if(config('pixelfed.import.instagram.enabled') != true) {
+        	abort(404, 'Feature not enabled');
+        }
     }
     }
 
 
 }
 }