Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix autocomplete by person name in works browse filter #328

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

damisul
Copy link
Collaborator

@damisul damisul commented Apr 24, 2024

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

…t from admin controller which is restricted to editors only.

Modified it to use endpoint declared in manifestation controller (it missed url in routes though)
@damisul damisul requested a review from abartov April 24, 2024 06:52
@abartov abartov merged commit ee46d40 into master Apr 24, 2024
7 checks passed
@abartov abartov deleted the fix_person_autocomplete branch April 24, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autocomplete fields in browse filters are broken if user is not logged in or does not have editor role
2 participants