From 6bd9996dafcd1bed80b8e952126c0cae39c36fb3 Mon Sep 17 00:00:00 2001 From: David Lu Date: Thu, 26 May 2016 07:03:06 -0700 Subject: [PATCH] Made message command for all users (#3122) --- api/command_msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/command_msg.go b/api/command_msg.go index 6c517b68e0..7fd2810775 100644 --- a/api/command_msg.go +++ b/api/command_msg.go @@ -46,7 +46,7 @@ func (me *msgProvider) DoCommand(c *Context, channelId string, message string) * targetUser = strings.SplitN(message, " ", 2)[0] targetUser = strings.TrimPrefix(targetUser, "@") - if profileList := <-Srv.Store.User().GetProfiles(c.TeamId); profileList.Err != nil { + if profileList := <-Srv.Store.User().GetAllProfiles(); profileList.Err != nil { c.Err = profileList.Err return &model.CommandResponse{Text: c.T("api.command_msg.list.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL} } else {