pagination testing

This commit is contained in:
2019-10-29 00:41:18 -05:00
parent 054935a95d
commit 390208ecd4
2 changed files with 15 additions and 25 deletions

View File

@@ -117,26 +117,4 @@ class User extends Authenticatable
return $role->role;
}
public function getPermissionsString() {
$permString = null;
$permCount = UserPermission::where([
'character_id' => $this->character_id,
])->count();
if($permCount > 0) {
$perms = UserPermission::where([
'character_id' => $this->character_id,
])->get('permission')->toArray();
foreach($perms as $perm) {
$permString = implode(', ', $perm);
}
return $permString;
} else {
return null;
}
}
}