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 autocompleting POI address for non-staff users #1783

Conversation

seluianova
Copy link
Contributor

Short description

At the moment, the auto completion feature introduced in #1744 does only work for staff users.

Proposed changes

Pass region_slug parameter into the view.
(Because our access control treats all views without the region_slug parameter as "staff area" and denies region users to access them.)

Side effects

Didn't find any

Resolved issues

Fixes: #1777


Pull Request Review Guidelines

@seluianova seluianova requested a review from a team as a code owner October 19, 2022 13:46
@seluianova seluianova linked an issue Oct 19, 2022 that may be closed by this pull request
@codeclimate
Copy link

codeclimate bot commented Oct 19, 2022

Code Climate has analyzed commit 7079c0e and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 74.2% (0.0% change).

View more on Code Climate.

@seluianova seluianova force-pushed the bugfix/autocompleting-poi-address-not-working-for-non-staff-users branch from 5da0bfa to 1b8f874 Compare October 19, 2022 14:31
@JoeyStk JoeyStk self-requested a review October 20, 2022 12:12
Copy link
Contributor

@charludo charludo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works like a charm!

Copy link
Member

@david-venhoff david-venhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this fixes the issue!

integreat_cms/cms/urls/protected.py Outdated Show resolved Hide resolved
@JoeyStk JoeyStk removed their request for review October 21, 2022 11:12
@seluianova seluianova force-pushed the bugfix/autocompleting-poi-address-not-working-for-non-staff-users branch from 1b8f874 to e71f135 Compare October 24, 2022 10:51
@seluianova seluianova force-pushed the bugfix/autocompleting-poi-address-not-working-for-non-staff-users branch from 37d3e6a to 7079c0e Compare October 24, 2022 10:55
@seluianova seluianova merged commit f4aacbd into develop Oct 24, 2022
@seluianova seluianova deleted the bugfix/autocompleting-poi-address-not-working-for-non-staff-users branch October 24, 2022 11:02
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.

Autocompleting POI address not working for non-staff users
3 participants