[ckan-dev] DataStore, DROP TABLE and recreate work, but DROP TABLE and recreate as VIEW fails.

Adrià Mercader adria.mercader at okfn.org
Tue Apr 5 08:56:10 UTC 2016


Hi Michael,


On 4 April 2016 at 19:58, Michael Nielsen <mic.niel84 at gmail.com> wrote:

>         p.toolkit.check_access('datastore_search', context, data_dict)

Commenting this will mean that no auth checks are performed. This
means that all users are able to query all resources, including those
from private datasets.

If this is fine in your case there's a cleaner way of doing it,
overriding the `datastore_search` auth function from your extension
[1] to always return True.

But as Ian mentioned if you can identify the underlying issue with
views and authorization that'd be great.

Adrià


[1] http://docs.ckan.org/en/latest/extensions/tutorial.html#implementing-the-iauthfunctions-plugin-interface



More information about the ckan-dev mailing list