[MM-22071] Allow fetch all groups as a system admin (#13866)
* Merge upstream * allow fetch all groups * Delete report.xml * update i18n stuffz * fix test cases * fix bug Co-authored-by: Jason Paul Deland <9366595+jaydeland@users.noreply.github.com> Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
17f2cd665d
Коммит
4587913b49
@@ -801,7 +801,7 @@ func TestGetGroups(t *testing.T) {
|
||||
th.App.SetLicense(model.NewTestLicense("ldap"))
|
||||
|
||||
_, response = th.SystemAdminClient.GetGroups(opts)
|
||||
CheckBadRequestStatus(t, response)
|
||||
require.Nil(t, response.Error)
|
||||
|
||||
_, response = th.SystemAdminClient.UpdateChannelRoles(th.BasicChannel.Id, th.BasicUser.Id, "")
|
||||
require.Nil(t, response.Error)
|
||||
@@ -841,4 +841,9 @@ func TestGetGroups(t *testing.T) {
|
||||
|
||||
_, response = th.Client.GetGroups(opts)
|
||||
assert.Nil(t, response.Error)
|
||||
|
||||
opts.NotAssociatedToTeam = ""
|
||||
opts.NotAssociatedToChannel = ""
|
||||
_, response = th.Client.GetGroups(opts)
|
||||
CheckForbiddenStatus(t, response)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user