MM-18512 Use options struct for GetProfilesWithoutTeam and add filtering to API (#12200)
* Use options struct for GetProfilesWithoutTeam and add filtering * Fix test
Этот коммит содержится в:
коммит произвёл
Miguel de la Cruz
родитель
4ce7b92283
Коммит
3d4c941ba8
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user