debian-mirror-gitlab/app/controllers/projects/registry/application_controller.rb
2017-08-17 22:00:37 +05:30

16 lines
359 B
Ruby

module Projects
module Registry
class ApplicationController < Projects::ApplicationController
layout 'project'
before_action :verify_registry_enabled!
before_action :authorize_read_container_image!
private
def verify_registry_enabled!
render_404 unless Gitlab.config.registry.enabled
end
end
end
end