Update ImportController

This commit is contained in:
Daniel Supernault 2020-05-25 21:30:18 -06:00
parent 776cd4398b
commit 3b7e9e07e1
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 8 additions and 8 deletions

View File

@ -6,15 +6,15 @@ use Illuminate\Http\Request;
class ImportController extends Controller
{
use Import\Instagram, Import\Mastodon;
use Import\Instagram, Import\Mastodon;
public function __construct()
{
$this->middleware('auth');
public function __construct()
{
$this->middleware('auth');
if(config('pixelfed.import.instagram.enabled') != true) {
abort(404, 'Feature not enabled');
}
}
if(config('pixelfed.import.instagram.enabled') != true) {
abort(404, 'Feature not enabled');
}
}
}