mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Refactor discover setting reporting (#26706)
This commit is contained in:
@ -636,10 +636,6 @@ class Guardian
|
||||
other && authenticated? && other.is_a?(User) && @user == other
|
||||
end
|
||||
|
||||
def is_discourse_hub_request?
|
||||
request&.user_agent == "Discourse Hub"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def is_my_own?(obj)
|
||||
|
Reference in New Issue
Block a user