Skip to content

Commit

Permalink
fix: fix ap_doi user_show context
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed May 15, 2024
1 parent fd9a4b9 commit 3f50cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/ap_doi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def set_package_author(pkg_dict: dict[str, Any]):
pkg_dict["author"] = package.get("author")
return pkg_dict

creator = tk.get_action("user_show")({}, {"id": creator_id})
creator = tk.get_action("user_show")({"ignore_auth": True}, {"id": creator_id})

pkg_dict["author"] = creator.get("fullname") or creator.get("name")

Expand Down

0 comments on commit 3f50cca

Please sign in to comment.