register fleet modification

This commit is contained in:
2018-11-17 17:06:35 -06:00
parent 28fa5257c3
commit 51279dca4a

View File

@@ -53,7 +53,7 @@ class FleetsController extends Controller
//Register a new instance of the fleet class
$fleet = new Fleet(Auth::user()->character_id);
//Check to see if the character registering the fleet has the correct scope
if(!$fleet->HaveEsiScope($fc, 'esi-fleets.write_fleet.v1')) {
if(!$fleet->HaveEsiScope(Auth::user()->character_id, 'esi-fleets.write_fleet.v1')) {
return view('inc.error')->with('error', 'User does not have the write fleet scope.');
}