mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add site setting tos_accept_required. If enabled, users must check a box saying that they've read and accept the terms of service.
This commit is contained in:
@@ -211,8 +211,10 @@ class ApplicationController < ActionController::Base
|
||||
def custom_html_json
|
||||
MultiJson.dump({
|
||||
top: SiteContent.content_for(:top),
|
||||
bottom: SiteContent.content_for(:bottom),
|
||||
})
|
||||
bottom: SiteContent.content_for(:bottom)
|
||||
}.merge(
|
||||
(SiteSetting.tos_accept_required && !current_user) ? {tos_signup_form_message: SiteContent.content_for(:tos_signup_form_message)} : {}
|
||||
))
|
||||
end
|
||||
|
||||
def render_json_error(obj)
|
||||
|
||||
Reference in New Issue
Block a user