diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-02-02 17:04:02 +0300 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-02-16 11:17:40 +0300 |
commit | 297dc70158f905fef4557d1ee6510bcf459a08a9 (patch) | |
tree | b35fa5508d947f1d19e644ac9b1149145f9bb45a /app/services/groups | |
parent | e90ec73f651ca6153a72437d4dd01f60c38839da (diff) |
Create MM team for GitLab group
Diffstat (limited to 'app/services/groups')
-rw-r--r-- | app/services/groups/create_service.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/services/groups/create_service.rb b/app/services/groups/create_service.rb index febeb661fb5..209fd15f481 100644 --- a/app/services/groups/create_service.rb +++ b/app/services/groups/create_service.rb @@ -22,6 +22,11 @@ module Groups @group.name ||= @group.path.dup @group.save @group.add_owner(current_user) + + if params[:create_chat_team] && Gitlab.config.mattermost.enabled + Mattermost::CreateTeamWorker.perform_async(@group.id, current_user.id) + end + @group end end |