ranks of users

This commit is contained in:
2018-11-10 15:52:04 -06:00
parent 30214bbd4b
commit ba2f75a842

View File

@@ -25,7 +25,7 @@ class RequireRole
'Admin' => 3,
];
$check = DB::table('user_roles')->where('character_id', auth()->user()->character_id)->get(['role']);
$stuff = $check[0]->all();
$stuff = $check[0]['role']->all();
dd($stuff);
if($ranking[$check->role] === $ranking[$role]) {
$confirmed = true;