Skip to content

Commit

Permalink
Fix user_show for ckan.auth.public_user_details
Browse files Browse the repository at this point in the history
Fixes #7838
  • Loading branch information
markstuart committed Nov 1, 2023
1 parent dcf22c8 commit fda3f02
Showing 1 changed file with 4 additions and 4 deletions.
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

_check_access('user_show', context, data_dict)

if not user_obj:
raise NotFound

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

0 comments on commit fda3f02

Please sign in to comment.