debugging

This commit is contained in:
2018-11-10 15:19:23 -06:00
parent ed9222f105
commit 22b99ea150
2 changed files with 1 additions and 1 deletions

View File

@@ -16,7 +16,6 @@ class RequireRole
public function handle($request, Closure $next, $role)
{
$check = DB::table('user_roles')->where('character_id', auth()->user()->character_id)->get(['role']);
dd($check);
if($check === $role) {
$confirmed = true;
} else {

View File

@@ -31,6 +31,7 @@ class AuthServiceProvider extends ServiceProvider
$gate->define('isAdmin', function($user) {
$check = DB::table('user_roles')->where('character_id', auth()->user()->character_id)->get(['role']);
printf($check);
if($check === 'Admin') {
return true;
} else {