mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
When we check upload security, one of the checks is to run `access_control_post.with_secure_uploads?`. The problem here is that the `topic` for the post could be deleted, which would make the check return `nil` sometimes instead of false because of safe navigation. We just need to be more explicit.