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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
453 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
module Projects
module Registry
class ApplicationController < Projects::ApplicationController
layout 'project'
before_action :verify_registry_enabled!
before_action :authorize_read_container_image!
2021-01-03 14:25:43 +05:30
feature_category :container_registry
2022-07-16 23:28:13 +05:30
urgency :low
2021-01-03 14:25:43 +05:30
2017-08-17 22:00:37 +05:30
private
def verify_registry_enabled!
render_404 unless Gitlab.config.registry.enabled
end
end
end
end