mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-29 13:31:43 +01:00
52b55dabbb
This is lacking tests (and proper icons), but can talk to a debug provider.
24 lines
453 B
Ruby
24 lines
453 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Admin::Fasp::RegistrationsController < Admin::BaseController
|
|
before_action :set_provider
|
|
|
|
def new
|
|
authorize [:admin, @provider], :create?
|
|
end
|
|
|
|
def create
|
|
authorize [:admin, @provider], :create?
|
|
|
|
@provider.update_info!(confirm: true)
|
|
|
|
redirect_to edit_admin_fasp_provider_path(@provider)
|
|
end
|
|
|
|
private
|
|
|
|
def set_provider
|
|
@provider = Fasp::Provider.find(params[:provider_id])
|
|
end
|
|
end
|