updated role middleware

This commit is contained in:
2020-03-06 21:00:07 -06:00
parent a714d2bf21
commit 07ad2d5be7

View File

@@ -31,7 +31,7 @@ class RequireRole
abort(403, "You don't have any roles. You don't belong here.");
}
dd($check[0]->role);
dd($ranking[$role]);
if($ranking[$check[0]->role] > $ranking[$role]) {
abort(403, "You don't have the correct role to be in this area.");