2022-05-07 20:08:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Projects
|
|
|
|
module Harbor
|
|
|
|
class ApplicationController < Projects::ApplicationController
|
|
|
|
layout 'project'
|
2022-08-13 15:12:31 +05:30
|
|
|
include ::Harbor::Access
|
2022-05-07 20:08:51 +05:30
|
|
|
|
|
|
|
private
|
|
|
|
|
2022-08-13 15:12:31 +05:30
|
|
|
def authorize_read_harbor_registry!
|
|
|
|
render_404 unless can?(current_user, :read_harbor_registry, @project)
|
2022-05-07 20:08:51 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|