[ckan-dev] user shall see also datasets she is not allowed to access to ask for permission
Ross Jones
ross at servercode.co.uk
Tue Dec 2 10:50:07 UTC 2014
Hi,
You’ll need to start an extension, and then I guess you;d need to:
1. Override logic.auth.get.package_show to allow private datasets to be viewed
2. Override logic.action.get.package_show to not include resources in private datasets if the user doesn’t have permission to edit on a private dataset.
3. You’ll need to pass {'ignore_capacity_check’: True} (at least it is there on master) in your call to get_action(‘package_search’)()
I think that’s *probably* it, am sure someone will shout up if I missed anything.
Ross
> On 2 Dec 2014, at 10:34, Andreas Loibl <andreas.loibl at univie.ac.at> wrote:
>
> Hi!
>
> At the moment a user with insufficient rights cannot find or see
> datasets that are not open ones.
>
> I would like that this user can see these (closed) datasets and ask
> for permission to access it.
>
> If she doesn't see that it's there, she wouldn't even ask for accessing it.
>
> Any help would be welcome!
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
More information about the ckan-dev
mailing list