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 user_show for ckan.auth.public_user_details #7866

Merged
merged 1 commit into from Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions ckan/logic/action/get.py
Expand Up @@ -1444,13 +1444,13 @@ def user_show(context: Context, data_dict: DataDict) -> ActionResult.UserShow:
else:
user_obj = None

if not user_obj:
raise NotFound

context['user_obj'] = user_obj
if user_obj:
context['user_obj'] = user_obj
pdelboca marked this conversation as resolved.
Show resolved Hide resolved

_check_access('user_show', context, data_dict)

if not user_obj:
raise NotFound

# include private and draft datasets?
requester = context.get('user')
Expand Down