Skip to content

Commit

Permalink
Replace auth_function.__name__ with action
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra committed Jan 9, 2019
1 parent 4c7c42a commit 3e5f585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/authz.py
Expand Up @@ -206,7 +206,7 @@ def is_authorized(action, context, data_dict=None):
return {
'success': False,
'msg': 'Action {0} requires an authenticated user'.format(
auth_function.__name__)
action)
}

return auth_function(context, data_dict)
Expand Down

0 comments on commit 3e5f585

Please sign in to comment.