updated role middleware
This commit is contained in:
@@ -27,6 +27,8 @@ class RequireRole
|
|||||||
array_push($temp, $ranking);
|
array_push($temp, $ranking);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dd($ranking);
|
||||||
|
|
||||||
$check = UserRole::where('character_id', auth()->user()->character_id)->get(['role']);
|
$check = UserRole::where('character_id', auth()->user()->character_id)->get(['role']);
|
||||||
|
|
||||||
if(!isset($check[0]->role)) {
|
if(!isset($check[0]->role)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user