updated role middleware

This commit is contained in:
2020-03-06 20:59:37 -06:00
parent 0c00eb9b2f
commit a714d2bf21

View File

@@ -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.");
}