updated role middleware

This commit is contained in:
2020-03-06 21:01:54 -06:00
parent 07ad2d5be7
commit 0a26a7f3c5
+1 -3
View File
@@ -31,9 +31,7 @@ class RequireRole
abort(403, "You don't have any roles. You don't belong here.");
}
dd($ranking[$role]);
if($ranking[$check[0]->role] > $ranking[$role]) {
if($ranking[$check[0]->role] < $ranking[$role]) {
abort(403, "You don't have the correct role to be in this area.");
}