Refactor: replace whitelist_mode mentions with limited_federation_mode (#26252)
This commit is contained in:
parent
8891d8945d
commit
e258b4cb64
33 changed files with 57 additions and 55 deletions
|
@ -4,7 +4,7 @@ class Api::V1::Peers::SearchController < Api::BaseController
|
|||
before_action :require_enabled_api!
|
||||
before_action :set_domains
|
||||
|
||||
skip_before_action :require_authenticated_user!, unless: :whitelist_mode?
|
||||
skip_before_action :require_authenticated_user!, unless: :limited_federation_mode?
|
||||
skip_around_action :set_locale
|
||||
|
||||
vary_by ''
|
||||
|
@ -17,7 +17,7 @@ class Api::V1::Peers::SearchController < Api::BaseController
|
|||
private
|
||||
|
||||
def require_enabled_api!
|
||||
head 404 unless Setting.peers_api_enabled && !whitelist_mode?
|
||||
head 404 unless Setting.peers_api_enabled && !limited_federation_mode?
|
||||
end
|
||||
|
||||
def set_domains
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue