Add whitelist mode (#11291)

This commit is contained in:
Eugen Rochko
2019-07-30 11:10:46 +02:00
committed by GitHub
parent 85b7b565de
commit 24552b5160
44 changed files with 302 additions and 53 deletions

View File

@ -3,6 +3,7 @@
class AboutController < ApplicationController
layout 'public'
before_action :require_open_federation!, only: [:show, :more]
before_action :set_body_classes, only: :show
before_action :set_instance_presenter
before_action :set_expires_in
@ -19,6 +20,10 @@ class AboutController < ApplicationController
private
def require_open_federation!
not_found if whitelist_mode?
end
def new_user
User.new.tap do |user|
user.build_account