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
1 changed files with 4 additions and 0 deletions

View File

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