diff --git a/ckan/controllers/storage.py b/ckan/controllers/storage.py index 3998319eda6..05c2140a5e6 100644 --- a/ckan/controllers/storage.py +++ b/ckan/controllers/storage.py @@ -166,6 +166,8 @@ def file(self, label): # handle erroneous trailing slash by redirecting to url w/o slash if label.endswith('/'): label = label[:-1] + # This may be best being cached_url until we have moved it into + # permanent storage file_url = h.url_for( 'storage_file', label=label ) h.redirect_to(file_url) else: diff --git a/ckan/logic/auth/update.py b/ckan/logic/auth/update.py index ac5f01197cd..b2b15fc6831 100644 --- a/ckan/logic/auth/update.py +++ b/ckan/logic/auth/update.py @@ -152,16 +152,6 @@ def task_status_update(context, data_dict): if 'ignore_auth' in context and context['ignore_auth']: return {'success': True} - - try: - resource = get_resource_object(context, data_dict) - except: - id = data_dict.get('entity_id',None) - resource = model.Resource.get(id) - - if resource and resource.revision: - if resource.revision.author == user: - return {'success': True} authorized = Authorizer().is_sysadmin(unicode(user)) if not authorized: