diff options
author | Rémy Coutable <remy@rymai.me> | 2019-02-01 18:22:30 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-02-01 18:22:30 +0300 |
commit | 073684e7a554b4e4b189a616b961f0d7ef7c1432 (patch) | |
tree | c599bfa4af2dac1d38ed6cba58ce92c00b985cb0 /app | |
parent | 04554d69bc9746f69b67e9eee09ecc94cd641236 (diff) |
Reduce diff with EE in Groups::CreateService
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app')
-rw-r--r-- | app/services/groups/create_service.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/groups/create_service.rb b/app/services/groups/create_service.rb index 24d8400c625..55a3b9fa7b1 100644 --- a/app/services/groups/create_service.rb +++ b/app/services/groups/create_service.rb @@ -10,6 +10,8 @@ module Groups def execute @group = Group.new(params) + after_build_hook(@group, params) + unless can_use_visibility_level? && can_create_group? return @group end @@ -30,6 +32,10 @@ module Groups private + def after_build_hook(group, params) + # overriden in EE + end + def create_chat_team? Gitlab.config.mattermost.enabled && @chat_team && group.chat_team.nil? end |