ranks of users

This commit is contained in:
2018-11-10 15:43:38 -06:00
parent cdcc438d69
commit c48b7bc164

View File

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