mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
1fc0ce1ac2
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.