abartov / bybeconv

Project Ben-Yehuda's content management system.
https://benyehuda.org/
Other
10 stars 5 forks source link

Fix autocomplete by person name in works browse filter #328

Closed damisul closed 2 months ago

damisul commented 2 months ago

Autocomplete field by person name in works#browse action used endpoint from admin controller which is restricted to editors only. The reason is that autocomplete_person_name_path url helper is declared in this way (points to AdminController).

There were public-available autocomplete endpoint declared in manifestation controller, but it was not mapped in routes file.

Modified it to use endpoint declared in manifestation controller snd added route for it