Skip to content

Commit

Permalink
Fixed resource proxy controller
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Oct 26, 2012
1 parent 2e1fca5 commit 760a5d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/resourceproxy/controller.py
Expand Up @@ -21,7 +21,8 @@ def proxy_resource(context, data_dict):


class ProxyController(base.BaseController):
def proxy_resource(self, data_dict):
def proxy_resource(self, resource_id):
data_dict = {'resource_id': resource_id}
context = {'model': base.model, 'session': base.model.Session,
'user': base.c.user or base.c.author}
return proxy_resource(context, data_dict)

0 comments on commit 760a5d1

Please sign in to comment.