[MM-24602] Adds local patch channel endpoint (#15032)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e6e563360b
Коммит
b916bae0f7
@@ -282,11 +282,13 @@ func TestPatchChannel(t *testing.T) {
|
||||
_, resp = Client.PatchChannel(th.BasicChannel.Id, patch)
|
||||
CheckForbiddenStatus(t, resp)
|
||||
|
||||
_, resp = th.SystemAdminClient.PatchChannel(th.BasicChannel.Id, patch)
|
||||
CheckNoError(t, resp)
|
||||
th.TestForSystemAdminAndLocal(t, func(t *testing.T, client *model.Client4) {
|
||||
_, resp = client.PatchChannel(th.BasicChannel.Id, patch)
|
||||
CheckNoError(t, resp)
|
||||
|
||||
_, resp = th.SystemAdminClient.PatchChannel(th.BasicPrivateChannel.Id, patch)
|
||||
CheckNoError(t, resp)
|
||||
_, resp = client.PatchChannel(th.BasicPrivateChannel.Id, patch)
|
||||
CheckNoError(t, resp)
|
||||
})
|
||||
|
||||
// Test updating the header of someone else's GM channel.
|
||||
user1 := th.CreateUser()
|
||||
|
||||
Ссылка в новой задаче
Block a user