ranks of users

This commit is contained in:
2018-11-10 15:46:09 -06:00
parent 31c89ed7a1
commit 0d15aea59e

View File

@@ -26,10 +26,10 @@ class RequireRole
]); ]);
$check = DB::table('user_roles')->where('character_id', auth()->user()->character_id)->get(['role']); $check = DB::table('user_roles')->where('character_id', auth()->user()->character_id)->get(['role']);
//dd($check); //dd($check);
if($ranking[$check[0]['role']] === $ranking[$role]) { if($ranking[$check->role] === $ranking[$role]) {
$confirmed = true; $confirmed = true;
} }
if($ranking[$check[0]['role']] >= $ranking[$role]) { if($ranking[$check->role] >= $ranking[$role]) {
$confirmed = true; $confirmed = true;
} }