Skip to content

Commit

Permalink
Merge pull request #1475 from open-data/fix/org-autocomplete
Browse files Browse the repository at this point in the history
Ignore Auth in Org Autocomplete Endpoint
  • Loading branch information
JVickery-TBS committed May 14, 2024
2 parents 590a632 + 8088991 commit 67a8704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/1475.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed an issue with the Organization Autocomplete endpoint not working properly.
2 changes: 1 addition & 1 deletion ckanext/canada/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ def organization_autocomplete():
organization_list = []

if q:
context = {'user': g.user, 'model': model}
context = {'user': g.user, 'model': model, 'ignore_auth': True}
data_dict = {'q': q, 'limit': limit}
organization_list = get_action(
'organization_autocomplete'
Expand Down

0 comments on commit 67a8704

Please sign in to comment.