blob: 9a94de3859ae869155b99443cd0b414b9abdec9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# frozen_string_literal: true
module Projects
module Registry
class ApplicationController < Projects::ApplicationController
layout 'project'
before_action :verify_registry_enabled!
before_action :authorize_read_container_image!
feature_category :container_registry
urgency :low
private
def verify_registry_enabled!
render_404 unless Gitlab.config.registry.enabled
end
end
end
end
|