|
@@ -3,6 +3,7 @@
|
3
|
3
|
namespace Luticate\Auth\DataAccess;
|
4
|
4
|
|
5
|
5
|
use Luticate\Auth\DataAccess\Models\LuticateUsers;
|
|
6
|
+use Luticate\Auth\DBO\LuticateUsersLightDbo;
|
6
|
7
|
use Luticate\Utils\LuDataAccess;
|
7
|
8
|
use Luticate\Auth\DataAccess\Models\LuticateGroups;
|
8
|
9
|
use Luticate\Auth\DBO\LuticateGroupsDbo;
|
|
@@ -39,8 +40,13 @@ class LuticateGroupsDataAccess extends LuDataAccess {
|
39
|
40
|
|
40
|
41
|
$model = $model->orderBy("luticate_users.username", "ASC");
|
41
|
42
|
$data = $model->take($perPage)->offset($page * $perPage)->get();
|
42
|
|
- $dbo = self::arrayToDbo($data);
|
43
|
|
- return new LuMultipleDbo($count, $dbo);
|
|
43
|
+ $usersLight = [];
|
|
44
|
+ foreach ($data as $user) {
|
|
45
|
+ if (!is_null($user)) {
|
|
46
|
+ $usersLight[] = LuticateUsersLightDbo::fromUserDbo($user->toDbo());
|
|
47
|
+ }
|
|
48
|
+ }
|
|
49
|
+ return new LuMultipleDbo($count, $usersLight);
|
44
|
50
|
}
|
45
|
51
|
|
46
|
52
|
public static function addUser($user_id, $group_id)
|