Skip to content

Commit

Permalink
Merge pull request ckan#7866 from mediasuitenz/fix_user_show
Browse files Browse the repository at this point in the history
Fix user_show for ckan.auth.public_user_details
  • Loading branch information
pdelboca authored Nov 13, 2023
2 parents 9f2fee9 + fda3f02 commit 9c27607
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckan/logic/action/get.py
Original file line number Diff line number Diff line change
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 9c27607

Please sign in to comment.