summaryrefslogtreecommitdiffstats
path: root/api/command_join.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-10-20 10:27:18 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-10-20 10:27:18 -0400
commit2e34d8843e14093880f62a8c3e1075cb0f0bfc8e (patch)
tree0e65c5c7a64de5cbbe93c2c45ce1fde805eab666 /api/command_join.go
parent6517b0f9e1acfb7f4a0dd62b86ce4e8c875deba1 (diff)
downloadchat-2e34d8843e14093880f62a8c3e1075cb0f0bfc8e.tar.gz
chat-2e34d8843e14093880f62a8c3e1075cb0f0bfc8e.tar.bz2
chat-2e34d8843e14093880f62a8c3e1075cb0f0bfc8e.zip
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
Diffstat (limited to 'api/command_join.go')
-rw-r--r--api/command_join.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/command_join.go b/api/command_join.go
index dddba0135..b8c863425 100644
--- a/api/command_join.go
+++ b/api/command_join.go
@@ -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}
}