Browse Source

Update ImportController

Daniel Supernault 6 năm trước cách đây
mục cha
commit
06fe1f0669
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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()
     {
         $this->middleware('auth');
+
+        if(config('pixelfed.import.instagram.enabled') != true) {
+        	abort(404, 'Feature not enabled');
+        }
     }
 
 }