Welcome to mirror list, hosted at ThFree Co, Russian Federation.

application_controller.rb « harbor « projects « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9271ec560dc84da855490ba9175c6122241ba1a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Projects
  module Harbor
    class ApplicationController < Projects::ApplicationController
      layout 'project'
      include ::Harbor::Access

      private

      def authorize_read_harbor_registry!
        render_404 unless can?(current_user, :read_harbor_registry, @project)
      end
    end
  end
end