Skip to content

Commit

Permalink
Merge branch '2733-feature-datastore' into 246-fix-datastorer-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Dec 21, 2012
2 parents 4601066 + 41a0aac commit 3714533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/datastore/logic/auth.py
Expand Up @@ -2,7 +2,8 @@


def _datastore_auth(context, data_dict):
data_dict['id'] = data_dict.get('resource_id')
if not 'id' in data_dict:
data_dict['id'] = data_dict.get('resource_id')
user = context.get('user')

authorized = p.toolkit.check_access('resource_update', context, data_dict)
Expand Down

0 comments on commit 3714533

Please sign in to comment.