gitlab-org--gitlab-foss/app/controllers/projects/releases_controller.rb
Alessio Caiazza 867a1acc90
Move Projects::ReleasesController under Tags
Rename Projects::ReleasesController to
Projects::Tags::ReleasesController
2018-12-18 11:07:31 +01:00

19 lines
439 B
Ruby

# frozen_string_literal: true
class Projects::ReleasesController < Projects::ApplicationController
# Authorize
before_action :require_non_empty_project
before_action :authorize_download_code!
before_action :check_releases_page_feature_flag
def index
end
private
def check_releases_page_feature_flag
return render_404 unless Feature.enabled?(:releases_page)
push_frontend_feature_flag(:releases_page)
end
end