mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: do not include contact url & email in client site settings payload (#13004)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user