فهرست منبع

Update ImportController

Daniel Supernault 6 سال پیش
والد
کامیت
06fe1f0669
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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');
+        }
     }
 
 }