Skip to content

Commit

Permalink
Always call check_access, even if a user does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
TkTech committed Jan 27, 2017
1 parent 1d0f7f8 commit 338f1b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/logic/action/get.py
Expand Up @@ -1493,6 +1493,8 @@ def user_show(context, data_dict):
:rtype: dictionary
'''
_check_access('user_show', context, data_dict)

model = context['model']

id = data_dict.get('id', None)
Expand All @@ -1507,8 +1509,6 @@ def user_show(context, data_dict):
else:
raise NotFound

_check_access('user_show', context, data_dict)

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

0 comments on commit 338f1b1

Please sign in to comment.