debian-mirror-gitlab/app/controllers/projects/harbor/application_controller.rb

23 lines
487 B
Ruby
Raw Normal View History

2022-05-07 20:08:51 +05:30
# frozen_string_literal: true
module Projects
module Harbor
class ApplicationController < Projects::ApplicationController
layout 'project'
before_action :harbor_registry_enabled!
before_action do
push_frontend_feature_flag(:harbor_registry_integration)
end
feature_category :integrations
private
def harbor_registry_enabled!
render_404 unless Feature.enabled?(:harbor_registry_integration)
end
end
end
end