mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-07-05 12:52:29 +00:00
FIX: Do not require login to see ads.txt (#84)
This commit is contained in:
parent
4ded0bdba9
commit
5273d52f28
@ -55,7 +55,7 @@ after_initialize do
|
|||||||
end
|
end
|
||||||
|
|
||||||
class ::AdstxtController < ::ApplicationController
|
class ::AdstxtController < ::ApplicationController
|
||||||
skip_before_action :check_xhr
|
skip_before_action :preload_json, :check_xhr, :redirect_to_login_if_required
|
||||||
|
|
||||||
def index
|
def index
|
||||||
raise Discourse::NotFound unless SiteSetting.ads_txt.present?
|
raise Discourse::NotFound unless SiteSetting.ads_txt.present?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user