ranks of users

This commit is contained in:
2018-11-10 15:53:10 -06:00
parent e25417d2cb
commit 12c0e97ac5
+4 -4
View File
@@ -25,12 +25,12 @@ class RequireRole
'Admin' => 3,
];
$check = DB::table('user_roles')->where('character_id', auth()->user()->character_id)->get(['role']);
$stuff = $check[0]->role;
dd($stuff);
if($ranking[$check->role] === $ranking[$role]) {
//$stuff = $check[0]->role;
//dd($stuff);
if($ranking[$check[0]->role] === $ranking[$role]) {
$confirmed = true;
}
if($ranking[$check->role] >= $ranking[$role]) {
if($ranking[$check[0]->role] >= $ranking[$role]) {
$confirmed = true;
}