ranks of users

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

View File

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