added renter role for use later

This commit is contained in:
2019-01-13 22:17:37 -06:00
parent 28d0e5f724
commit 75a1595571
2 changed files with 8 additions and 4 deletions

View File

@@ -242,7 +242,7 @@ class LoginController extends Controller
} else if($accountType == 'W4RP') { } else if($accountType == 'W4RP') {
$role = 'User'; $role = 'User';
} elseif($accountType == 'Renter') { } elseif($accountType == 'Renter') {
$role = 'User'; $role = 'Renter';
} else { } else {
$role = 'None'; $role = 'None';
} }
@@ -275,6 +275,9 @@ class LoginController extends Controller
$corp_info = $esi->invoke('get', '/corporations/{corporation_id}/', [ $corp_info = $esi->invoke('get', '/corporations/{corporation_id}/', [
'corporation_id' => $character_info->corporation_id, 'corporation_id' => $character_info->corporation_id,
]); ]);
//Send back the appropriate group
//Send back the appropriate group //Send back the appropriate group
if(isset($corp_info->alliance_id)) { if(isset($corp_info->alliance_id)) {
if($corp_info->alliance_id == '99004116') { if($corp_info->alliance_id == '99004116') {

View File

@@ -22,9 +22,10 @@ class RequireRole
$ranking = [ $ranking = [
'None' => 0, 'None' => 0,
'Guest' => 1, 'Guest' => 1,
'User' => 2, 'Renter' => 2,
'Admin' => 3, 'User' => 3,
'SuperUser' => 4, 'Admin' => 4,
'SuperUser' => 5,
]; ];
$check = UserRole::where('character_id', auth()->user()->character_id)->get(['role']); $check = UserRole::where('character_id', auth()->user()->character_id)->get(['role']);