Browse Source

group get users

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
c6560733ec
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/Auth/DataAccess/LuticateGroupsDataAccess.php

+ 2
- 2
src/Auth/DataAccess/LuticateGroupsDataAccess.php View File

@@ -32,8 +32,8 @@ class LuticateGroupsDataAccess extends LuDataAccess {
32 32
     }
33 33
     public static function getUsers($group_id, $page = 0, $perPage = PHP_INT_MAX)
34 34
     {
35
-        $model = LuticateUsers::where("luticate_users.id", "=", "luticate_users_groups.user_id")
36
-            ->join("luticate_users_groups", "luticate_users_groups.group_id", "=", $group_id);
35
+        $model = LuticateUsers::where("luticate_users_groups.group_id", "=", $group_id)
36
+            ->join("luticate_users_groups", "luticate_users.id", "=", "luticate_users_groups.user_id");
37 37
 
38 38
         $count = $model->count();
39 39
 

Loading…
Cancel
Save