Skip to content

Commit

Permalink
Use user performing the action on activity context on user_update
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Oct 4, 2019
1 parent 8c02842 commit 77bb423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/logic/action/update.py
Expand Up @@ -632,7 +632,7 @@ def user_update(context, data_dict):
'''
model = context['model']
user = context['user']
user = author = context['user']
session = context['session']
schema = context.get('schema') or schema_.default_update_user_schema()
id = _get_or_bust(data_dict, 'id')
Expand Down Expand Up @@ -662,7 +662,7 @@ def user_update(context, data_dict):
}
activity_create_context = {
'model': model,
'user': user,
'user': author,
'defer_commit': True,
'ignore_auth': True,
'session': session
Expand Down

0 comments on commit 77bb423

Please sign in to comment.