function fix

This commit is contained in:
2018-11-19 00:55:23 -06:00
parent 80fa93498f
commit d40e9daeb9

View File

@@ -54,7 +54,7 @@ class FleetsController extends Controller
//Register a new instance of the fleet class
$fleet = new Fleet(Auth::user()->character_id);
$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.');
}