PLT-4138 Fix /join command for non-admin accounts (#4265)
* Fix /join command for non-admin accounts * Implement found check in join command unit test properly
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
6517b0f9e1
Коммит
2e34d8843e
@@ -46,7 +46,7 @@ func (me *JoinProvider) DoCommand(c *Context, channelId string, message string)
|
||||
return &model.CommandResponse{Text: c.T("api.command_join.fail.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
|
||||
}
|
||||
|
||||
if err, _ := JoinChannelById(c, c.Session.UserId, channelId); err != nil {
|
||||
if err, _ := JoinChannelById(c, c.Session.UserId, v.Id); err != nil {
|
||||
return &model.CommandResponse{Text: c.T("api.command_join.fail.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user