mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Ensure topic exists before making a banner. (#7781)
This commit is contained in:
@@ -174,6 +174,6 @@ module TopicGuardian
|
||||
end
|
||||
|
||||
def can_banner_topic?(topic)
|
||||
authenticated? && !topic.private_message? && is_staff?
|
||||
topic && authenticated? && !topic.private_message? && is_staff?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user