admin controller

This commit is contained in:
2018-12-06 22:11:49 -06:00
parent 5f2487cfe1
commit 7b437afcac
2 changed files with 5 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ class RequireRole
'Director' => 3,
'Admin' => 4,
];
$check = DB::table('user_roles')->where('character_id', auth()->user()->character_id)->get(['role']);
//Using eloquent let's get the roles for the character
$check = UserRole::where('character_id', auth()->user()->character_id)->get(['role']);
if(!isset($check[0]->role)) {