FEATURE: Users can feature any public topic on his/her profile (#8809)

This commit is contained in:
Mark VanLandingham
2020-01-29 10:10:23 -06:00
committed by GitHub
parent de2e857de6
commit e29fef9e99
4 changed files with 12 additions and 17 deletions

View File

@@ -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