12ee2753c1
Enables frozen string for some vestigial files as well as the following: * app/controllers/projects/**/*.rb * app/controllers/sherlock/**/*.rb * app/controllers/snippets/**/*.rb * app/controllers/users/**/*.rb Partially addresses #47424.
18 lines
390 B
Ruby
18 lines
390 B
Ruby
# 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!
|
|
|
|
private
|
|
|
|
def verify_registry_enabled!
|
|
render_404 unless Gitlab.config.registry.enabled
|
|
end
|
|
end
|
|
end
|
|
end
|