Update ImportController

This commit is contained in:
Daniel Supernault 2019-03-17 17:00:46 -06:00
parent 9db18df329
commit 06fe1f0669
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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');
}
} }
} }