updated role middleware
This commit is contained in:
@@ -31,6 +31,8 @@ class RequireRole
|
||||
abort(403, "You don't have any roles. You don't belong here.");
|
||||
}
|
||||
|
||||
dd($check[0]->role);
|
||||
|
||||
if($ranking[$check[0]->role] > $ranking[$role]) {
|
||||
abort(403, "You don't have the correct role to be in this area.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user