From bb5ba43ebb64da8288ebe0dfbed2269f63570a22 Mon Sep 17 00:00:00 2001 From: amercader Date: Thu, 9 Aug 2012 13:37:28 +0100 Subject: [PATCH] Allow showing harvest objects by default (on the default auth profile) --- ckanext/harvest/logic/auth/get.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ckanext/harvest/logic/auth/get.py b/ckanext/harvest/logic/auth/get.py index 2581818..c138b3e 100644 --- a/ckanext/harvest/logic/auth/get.py +++ b/ckanext/harvest/logic/auth/get.py @@ -42,10 +42,7 @@ def harvest_object_show(context,data_dict): model = context['model'] user = context.get('user') - if not Authorizer().is_sysadmin(user): - return {'success': False, 'msg': _('User %s not authorized to read this harvest object') % str(user)} - else: - return {'success': True} + return {'success': True} def harvest_object_list(context,data_dict): model = context['model']