Skip to content

Commit

Permalink
Remove the change to task_status_update auth so that it as it was.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Jan 12, 2012
1 parent d6395ac commit a4c267a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 2 additions & 0 deletions ckan/controllers/storage.py
Expand Up @@ -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:
Expand Down
10 changes: 0 additions & 10 deletions ckan/logic/auth/update.py
Expand Up @@ -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:
Expand Down

0 comments on commit a4c267a

Please sign in to comment.