Sfoglia il codice sorgente

test get all users not in group

tags/0.1.0
Robin Thoni 10 anni fa
parent
commit
2f3f39d6f3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/Auth/DataAccess/LuticateGroupsDataAccess.php

+ 1
- 1
src/Auth/DataAccess/LuticateGroupsDataAccess.php Vedi 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…
Annulla
Salva