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']);
|
||||
//dd($check);
|
||||
if($ranking[$check[0]['role']] === $ranking[$role]) {
|
||||
if($ranking[$check->role] === $ranking[$role]) {
|
||||
$confirmed = true;
|
||||
}
|
||||
if($ranking[$check[0]['role']] >= $ranking[$role]) {
|
||||
if($ranking[$check->role] >= $ranking[$role]) {
|
||||
$confirmed = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user