blob: a56f9c58726357f04ff54de5a525c86d0fbba48b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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
|