ranks of users

This commit is contained in:
2018-11-10 15:45:24 -06:00
parent ba4b657603
commit 31c89ed7a1

View File

@@ -25,7 +25,7 @@ class RequireRole
'Admin' => 3,
]);
$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]) {
$confirmed = true;
}