mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Users can feature any public topic on his/her profile (#8809)
This commit is contained in:
committed by
GitHub
parent
de2e857de6
commit
e29fef9e99
@@ -128,6 +128,6 @@ module UserGuardian
|
||||
return false if !SiteSetting.allow_featured_topic_on_user_profiles?
|
||||
return false if !is_me?(user) && !is_staff?
|
||||
return false if topic.read_restricted_category? || topic.private_message?
|
||||
topic.user_id === user.id
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user