def resource_acl_create(context, data_dict): '''Authorization check for creating a acl for a resource ''' resource_id = data_dict.get('resource_id') return ckan_resource_update(context, {'id': resource_id})
def resource_tracker_list(context, data_dict): '''Authorization check for getting a list of log for a resource ''' resource_id = data_dict.get('el') return ckan_resource_update(context, {'id': resource_id})
def resource_update(context, data_dict=None): # This auth function must be overriden like this, otherwise an error is # thrown when a regular user is adding new resource. return ckan_resource_update(context, data_dict)