function fix
This commit is contained in:
@@ -54,7 +54,7 @@ class FleetsController extends Controller
|
|||||||
//Register a new instance of the fleet class
|
//Register a new instance of the fleet class
|
||||||
$fleet = new Fleet(Auth::user()->character_id);
|
$fleet = new Fleet(Auth::user()->character_id);
|
||||||
$esiHelper = new Esi();
|
$esiHelper = new Esi();
|
||||||
if(!$esiHelper->HaveEsiScope('esi-fleets.write_fleet.v1')) {
|
if(!$esiHelper->HaveEsiScope(Auth::user()->character_id, 'esi-fleets.write_fleet.v1')) {
|
||||||
return view('inc.error')->with('error', 'User does not have the write fleet scope.');
|
return view('inc.error')->with('error', 'User does not have the write fleet scope.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user