From efc4c4e5bd3bb9620be32b2714b30258db8ce944 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 29 Oct 2019 00:42:05 -0500 Subject: [PATCH] pagination testing --- app/Http/Controllers/Dashboard/AdminController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Dashboard/AdminController.php b/app/Http/Controllers/Dashboard/AdminController.php index 264baec4a..1fa50707d 100644 --- a/app/Http/Controllers/Dashboard/AdminController.php +++ b/app/Http/Controllers/Dashboard/AdminController.php @@ -35,12 +35,12 @@ class AdminController extends Controller $user->role = $user->getRole(); $permCount = UserPermission::where([ - 'character_id' => $this->character_id, + 'character_id' => $user->character_id, ])->count(); if($permCount > 0) { $perms = UserPermission::where([ - 'character_id' => $this->character_id, + 'character_id' => $user->character_id, ])->get('permission')->toArray(); foreach($perms as $perm) {