Skip to content

Commit

Permalink
[#3009] Use is_authorized not check_access to wrap auth function
Browse files Browse the repository at this point in the history
I think this is the right way to do it
  • Loading branch information
Sean Hammond committed Nov 14, 2012
1 parent 1cb7b53 commit 8469a50
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ckan/logic/auth/get.py
Expand Up @@ -200,7 +200,5 @@ def dashboard_activity_list(context, data_dict):


def dashboard_new_activities_count(context, data_dict):
if logic.check_access('dashboard_activity_list', context, data_dict):
return {'success': True}
else:
return {'success': False}
return ckan.new_authz.is_authorized('dashboard_activity_list',
context, data_dict)

0 comments on commit 8469a50

Please sign in to comment.