2021-06-08 01:23:25 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Projects
|
|
|
|
module Settings
|
|
|
|
class PackagesAndRegistriesController < Projects::ApplicationController
|
|
|
|
layout 'project_settings'
|
|
|
|
|
|
|
|
before_action :authorize_admin_project!
|
|
|
|
before_action :packages_and_registries_settings_enabled!
|
|
|
|
|
|
|
|
feature_category :package_registry
|
2022-07-16 23:28:13 +05:30
|
|
|
urgency :low
|
2021-06-08 01:23:25 +05:30
|
|
|
|
|
|
|
def show
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def packages_and_registries_settings_enabled!
|
2022-07-23 23:45:48 +05:30
|
|
|
render_404 unless can?(current_user, :view_package_registry_project_settings, project)
|
2021-06-08 01:23:25 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|