summaryrefslogtreecommitdiff
path: root/app/controllers/projects/settings/integrations_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/settings/integrations_controller.rb')
-rw-r--r--app/controllers/projects/settings/integrations_controller.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/controllers/projects/settings/integrations_controller.rb b/app/controllers/projects/settings/integrations_controller.rb
index 1ff08cce8cb..d9fecfecc40 100644
--- a/app/controllers/projects/settings/integrations_controller.rb
+++ b/app/controllers/projects/settings/integrations_controller.rb
@@ -11,7 +11,14 @@ module Projects
@hook = ProjectHook.new
# Services
- @services = @project.find_or_initialize_services
+ @services = @project.find_or_initialize_services(exceptions: service_exceptions)
+ end
+
+ private
+
+ # Returns a list of services that should be hidden from the list
+ def service_exceptions
+ @project.disabled_services.dup
end
end
end