[ckan-dev] assigning groups to datasets

Knud Möller knud at datalysator.com
Thu Mar 31 10:32:44 UTC 2016


Hi,

in our CKAN (2.4) I would like to implement the following behaviour for
assigning groups to datasets:

a.) every logged_in user can assign any group to a dataset
b.) a user can only assign a group to a dataset if they can update it

I can achieve a.) by making all users members of all groups. However, this
seems to imply that a user can then assign a group to any dataset, not just
the ones they are allowed to update. So, how would I achieve b.)? I have
looked into authorization functions, but that does not seem to help, since
there is no corresponding action function that assigns a group to a dataset.

Could anyone point me in the right direction?

Cheers,
Knud

-- 
Dr. Knud Hinnerk Möller
Datalysator - Web Data Solutions and Training
knud at datalysator.com
+49 151 46 44 83 25
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160331/e19ec108/attachment-0002.html>


More information about the ckan-dev mailing list