mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 02:24:54 +08:00

A previous refactor has moved this function in the controller instead of the route making it inaccessible to the modal. This commit is fixing this and also adding a spec.