Skip to content

Commit

Permalink
Merge pull request #78 from target/acl-fix
Browse files Browse the repository at this point in the history
fix(acl): populate user and group info for events api
  • Loading branch information
Sean Quinn committed Dec 6, 2018
2 parents 9213a3f + a590670 commit a062187
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions remote/slack/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,16 @@ func processInteractiveComponentRule(rule models.Rule, message *models.Message,
// readFromEventsAPI utilizes the Slack API client to read event-based messages.
// This method of reading is preferred over the RTM method.
func readFromEventsAPI(api *slack.Client, vToken string, inputMsgs chan<- models.Message, bot *models.Bot) {
// get the current users
su, err := getSlackUsers(api, models.Message{})
if err != nil {
bot.Log.Error(err)
}
// populate users
populateBotUsers(su, bot)
// populate user groups
populateUserGroups(bot)

// Create router for the events server
router := mux.NewRouter()

Expand Down

0 comments on commit a062187

Please sign in to comment.