diff options
author | Chris <ccbrown112@gmail.com> | 2017-10-24 09:00:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-24 09:00:05 -0700 |
commit | 2a2af0e390e0323e02919598881783f38131b5ee (patch) | |
tree | e8e9dc4e3d7aecb93f0b67b1f6dcf238af7deadb /cmd/platform/user.go | |
parent | 673df81669ebb1f8ec278f3cb86fadcc09f5d030 (diff) | |
download | chat-2a2af0e390e0323e02919598881783f38131b5ee.tar.gz chat-2a2af0e390e0323e02919598881783f38131b5ee.tar.bz2 chat-2a2af0e390e0323e02919598881783f38131b5ee.zip |
eliminate more utils.Cfg references (#7701)
Diffstat (limited to 'cmd/platform/user.go')
-rw-r--r-- | cmd/platform/user.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/platform/user.go b/cmd/platform/user.go index f985aba38..bc5838795 100644 --- a/cmd/platform/user.go +++ b/cmd/platform/user.go @@ -273,7 +273,7 @@ func userInviteCmdF(cmd *cobra.Command, args []string) error { teams := getTeamsFromTeamArgs(a, args[1:]) for i, team := range teams { - err := inviteUser(email, team, args[i+1]) + err := inviteUser(a, email, team, args[i+1]) if err != nil { CommandPrintErrorln(err.Error()) @@ -283,13 +283,13 @@ func userInviteCmdF(cmd *cobra.Command, args []string) error { return nil } -func inviteUser(email string, team *model.Team, teamArg string) error { +func inviteUser(a *app.App, email string, team *model.Team, teamArg string) error { invites := []string{email} if team == nil { return fmt.Errorf("Can't find team '%v'", teamArg) } - app.SendInviteEmails(team, "Administrator", invites, *utils.Cfg.ServiceSettings.SiteURL) + a.SendInviteEmails(team, "Administrator", invites, *utils.Cfg.ServiceSettings.SiteURL) CommandPrettyPrintln("Invites may or may not have been sent.") return nil |