ranks of users

This commit is contained in:
2018-11-10 15:45:06 -06:00
parent aba6bf1335
commit ba4b657603

View File

@@ -26,10 +26,10 @@ class RequireRole
]);
$check = DB::table('user_roles')->where('character_id', auth()->user()->character_id)->get(['role']);
dd($check);
if($ranking[$check] === $ranking[$role]) {
if($ranking[$check[0]['role']] === $ranking[$role]) {
$confirmed = true;
}
if($ranking[$check] >= $ranking[$role]) {
if($ranking[$check[0]['role']] >= $ranking[$role]) {
$confirmed = true;
}