FIX: do not include contact url & email in client site settings payload (#13004)

This commit is contained in:
Arpit Jalan
2021-05-19 11:45:24 +05:30
committed by GitHub
parent 85b0bcfbdc
commit f96f534f3e
7 changed files with 117 additions and 29 deletions

View File

@ -530,6 +530,10 @@ class Guardian
true
end
def can_see_site_contact_details?
!SiteSetting.login_required? || authenticated?
end
def auth_token
if cookie = request&.cookies[Auth::DefaultCurrentUserProvider::TOKEN_COOKIE]
UserAuthToken.hash_token(cookie)