Skip to content

Commit

Permalink
[#1221] use write url for search as this uses correct priviledges
Browse files Browse the repository at this point in the history
  • Loading branch information
kindly committed Sep 30, 2013
1 parent 8ba03bb commit c8a483a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ckanext/datastore/logic/action.py
Expand Up @@ -300,9 +300,7 @@ def datastore_search(context, data_dict):
raise p.toolkit.ValidationError(errors)

res_id = data_dict['resource_id']
data_dict['connection_url'] = pylons.config.get(
'ckan.datastore.read_url',
pylons.config['ckan.datastore.write_url'])
data_dict['connection_url'] = pylons.config['ckan.datastore.write_url']

resources_sql = sqlalchemy.text(u'''SELECT alias_of FROM "_table_metadata"
WHERE name = :id''')
Expand Down

0 comments on commit c8a483a

Please sign in to comment.