Skip to content

Commit

Permalink
[#2216] Small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Jan 29, 2015
1 parent cc4aa68 commit f4eb39c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckan/logic/action/get.py
Expand Up @@ -1303,7 +1303,7 @@ def user_show(context, data_dict):
:param include_datasets: Include a list of datasets the user has created.
If it is the same user or a sysadmin requesting, it includes datasets
that are draft or private.
(optional, default:``False``, limit:50)
(optional, default:``False``, limit:50)
:type include_datasets: boolean
:param include_num_followers: Include the number of followers the user has
(optional, default:``False``)
Expand Down Expand Up @@ -1340,6 +1340,8 @@ def user_show(context, data_dict):
include_private_and_draft_datasets = \
new_authz.is_sysadmin(requester) or \
requester_looking_at_own_account
else:
include_private_and_draft_datasets = False
context['count_private_and_draft_datasets'] = \
include_private_and_draft_datasets

Expand Down

0 comments on commit f4eb39c

Please sign in to comment.