Browse Source

test get all users not in group

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

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

61
 
61
 
62
     public static function getOtherUsers($group_id, $page = 0, $perPage = PHP_INT_MAX, $query = "")
62
     public static function getOtherUsers($group_id, $page = 0, $perPage = PHP_INT_MAX, $query = "")
63
     {
63
     {
64
-        $model = LuticateUsers::where("luticate_users.id", "IS", "NULL")
64
+        $model = LuticateUsers::where("luticate_users_groups.id", "IS", "NULL")
65
             ->leftJoin("luticate_users_groups", function($join) use ($group_id)
65
             ->leftJoin("luticate_users_groups", function($join) use ($group_id)
66
             {
66
             {
67
                 $join->on("luticate_users.id", "=", "luticate_users_groups.user_id")
67
                 $join->on("luticate_users.id", "=", "luticate_users_groups.user_id")

Loading…
Cancel
Save