pagination testing
This commit is contained in:
@@ -35,12 +35,12 @@ class AdminController extends Controller
|
|||||||
$user->role = $user->getRole();
|
$user->role = $user->getRole();
|
||||||
|
|
||||||
$permCount = UserPermission::where([
|
$permCount = UserPermission::where([
|
||||||
'character_id' => $this->character_id,
|
'character_id' => $user->character_id,
|
||||||
])->count();
|
])->count();
|
||||||
|
|
||||||
if($permCount > 0) {
|
if($permCount > 0) {
|
||||||
$perms = UserPermission::where([
|
$perms = UserPermission::where([
|
||||||
'character_id' => $this->character_id,
|
'character_id' => $user->character_id,
|
||||||
])->get('permission')->toArray();
|
])->get('permission')->toArray();
|
||||||
|
|
||||||
foreach($perms as $perm) {
|
foreach($perms as $perm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user