ranks of users
This commit is contained in:
@@ -26,10 +26,10 @@ class RequireRole
|
|||||||
]);
|
]);
|
||||||
$check = DB::table('user_roles')->where('character_id', auth()->user()->character_id)->get(['role']);
|
$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]) {
|
if($ranking[$check->role] === $ranking[$role]) {
|
||||||
$confirmed = true;
|
$confirmed = true;
|
||||||
}
|
}
|
||||||
if($ranking[$check[0]['role']] >= $ranking[$role]) {
|
if($ranking[$check->role] >= $ranking[$role]) {
|
||||||
$confirmed = true;
|
$confirmed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user