[ckan-dev] Sysadmin and private datasets
Mariano Falcon
mf2286 at gmail.com
Mon Jan 11 15:40:53 UTC 2016
Hello, I've managed to build an extension to make all the created
datasets(always without organization) private by default. The idea is that
the sysadmin will list all of them and then, according to an evaluation,
make them public or not.
The problem is that when I login with a sysadmin role I can't see the
private datasets. I think the possible solution would be to change the
following block in /templates/package/search_form.html:
{% block package_search_results_list %}
{{ h.snippet('snippets/package_list.html', packages=c.page.items) }}
{% endblock %}
But I don't know if there's a context variable to get all the packages,
including the private ones.
--
Mariano Falcón
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160111/e15230d3/attachment-0002.html>
More information about the ckan-dev
mailing list