ranks of users

This commit is contained in:
2018-11-10 15:58:48 -06:00
parent 12c0e97ac5
commit efce8c351b
2 changed files with 6 additions and 6 deletions
+1 -2
View File
@@ -25,8 +25,7 @@ class RequireRole
'Admin' => 3,
];
$check = DB::table('user_roles')->where('character_id', auth()->user()->character_id)->get(['role']);
//$stuff = $check[0]->role;
//dd($stuff);
if($ranking[$check[0]->role] === $ranking[$role]) {
$confirmed = true;
}