mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
DEV: Guardian for hiding about stats (#9841)
This commit is contained in:

committed by
GitHub

parent
cfff8b1f27
commit
bd57ae83f1
@ -493,6 +493,10 @@ class Guardian
|
||||
is_staff?
|
||||
end
|
||||
|
||||
def can_see_about_stats?
|
||||
true
|
||||
end
|
||||
|
||||
def auth_token
|
||||
if cookie = request&.cookies[Auth::DefaultCurrentUserProvider::TOKEN_COOKIE]
|
||||
UserAuthToken.hash_token(cookie)
|
||||
|
Reference in New Issue
Block a user