Skip to content

Commit

Permalink
fix: anonymous user cannot download anything
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Jul 25, 2024
1 parent 114ffe4 commit 2efc669
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckanext/fpx/logic/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def order_ticket(context, data_dict):
user = tk.get_action("user_show")(
context.copy(), {"id": context["user"]}
)
except tk.ObjectNotFound:
except (tk.ObjectNotFound, tk.NotAuthorized):
user = None

if user:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = ckanext-fpx
version = 0.6.3
version = 0.6.4
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/DataShades/ckanext-fpx
Expand Down

0 comments on commit 2efc669

Please sign in to comment.