mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update ImportController
This commit is contained in:
parent
9db18df329
commit
06fe1f0669
1 changed files with 4 additions and 0 deletions
|
@ -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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue