MM-18512 Use options struct for GetProfilesWithoutTeam and add filtering to API (#12200)

* Use options struct for GetProfilesWithoutTeam and add filtering

* Fix test
Этот коммит содержится в:
Joram Wilander
2019-09-17 15:13:17 -04:00
коммит произвёл Miguel de la Cruz
родитель 4ce7b92283
Коммит 3d4c941ba8
11 изменённых файлов: 137 добавлений и 833 удалений

Просмотреть файл

@@ -618,7 +618,7 @@ func TestResctrictedViewMembers(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.Name, func(t *testing.T) {
results, err := th.App.GetUsersWithoutTeam(0, 100, tc.Restrictions)
results, err := th.App.GetUsersWithoutTeam(&model.UserGetOptions{Page: 0, PerPage: 100, ViewRestrictions: tc.Restrictions})
require.Nil(t, err)
ids := []string{}
for _, result := range results {