mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 03:38:05 +08:00
FIX: only staff can banner topics
This commit is contained in:
@ -154,4 +154,8 @@ module TopicGuardian
|
||||
def can_update_bumped_at?
|
||||
is_staff? || @user.has_trust_level?(TrustLevel[4])
|
||||
end
|
||||
|
||||
def can_banner_topic?(topic)
|
||||
authenticated? && !topic.private_message? && is_staff?
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user