diff --git a/ckanext/googleanalytics/logic/auth.py b/ckanext/googleanalytics/logic/auth.py index 9a8fbfb..126fe78 100644 --- a/ckanext/googleanalytics/logic/auth.py +++ b/ckanext/googleanalytics/logic/auth.py @@ -11,8 +11,8 @@ def get_auth(): def package_stats_show(context, data_dict): - return {"success": is_authorized("package_show", context, data_dict)} + return is_authorized("package_show", context, data_dict) def resource_stats_show(context, data_dict): - return {"success": is_authorized("resource_show", context, data_dict)} + return is_authorized("resource_show", context, data_dict)