diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-26 09:08:40 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-26 09:08:40 +0300 |
commit | 116d4e56e83a1f408afe710ce070e699ba206475 (patch) | |
tree | cc62d3820d9bfa199061edfdef3a2f4bda140507 /app/controllers/groups | |
parent | dddde902acfa6acfb11583c61faa67cc7c8d11b6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/groups')
-rw-r--r-- | app/controllers/groups/settings/integrations_controller.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/controllers/groups/settings/integrations_controller.rb b/app/controllers/groups/settings/integrations_controller.rb new file mode 100644 index 00000000000..43f8a7118d4 --- /dev/null +++ b/app/controllers/groups/settings/integrations_controller.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module Groups + module Settings + class IntegrationsController < Groups::ApplicationController + include IntegrationsActions + + before_action :authorize_admin_group! + + private + + def integrations_enabled? + Feature.enabled?(:group_level_integrations, group) + end + + def scoped_edit_integration_path(integration) + edit_group_settings_integration_path(group, integration) + end + end + end +end |