Skip to content

Commit

Permalink
[#1639] Fix bug when loading the users from ckan.hide_activity_from_u…
Browse files Browse the repository at this point in the history
…sers

The problem was that we did set ```user_list```, but never used it.
  • Loading branch information
vitorbaptista committed Apr 8, 2014
1 parent 5f44b70 commit 6eb9f07
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ckan/logic/action/get.py
Expand Up @@ -72,12 +72,13 @@ def _activity_stream_get_filtered_users():
'''
users = config.get('ckan.hide_activity_from_users')
if users:
user_list = users.split()
users_list = users.split()
else:
context = {'model': model, 'ignore_auth': True}
site_user = logic.get_action('get_site_user')(context)
users = [site_user.get('name')]
return model.User.user_ids_for_name_or_id(users)
users_list = [site_user.get('name')]

return model.User.user_ids_for_name_or_id(users_list)


def _package_list_with_resources(context, package_revision_list):
Expand Down

0 comments on commit 6eb9f07

Please sign in to comment.