mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 16:57:16 +08:00
FIX: Error message for 403 when featuring topic on profile (#9149)
This commit is contained in:

committed by
GitHub

parent
5037b80c9c
commit
3ad5cb0cbc
@ -129,6 +129,7 @@ module UserGuardian
|
||||
end
|
||||
|
||||
def can_feature_topic?(user, topic)
|
||||
return false if topic.nil?
|
||||
return false if !SiteSetting.allow_featured_topic_on_user_profiles?
|
||||
return false if !is_me?(user) && !is_staff?
|
||||
return false if !topic.visible
|
||||
|
Reference in New Issue
Block a user