[ckan-dev] Assign datasets to groups
Vitor Baptista
vitor at vitorbaptista.com
Thu Apr 17 19:36:16 UTC 2014
Hi all,
The commit that changed this behavior is
https://github.com/ckan/ckan/commit/0a3ffe0850f8ed290b3f66049b08178dbec9804e.
It's in CKAN since 2.0. Before that, anyone could add/remove datasets from
groups, after that, only members of the group. As far as I know, there's no
way to change this behavior through ckan.auth.* settings.
I haven't tested it, but reading the source it seems we still don't show
error messages if we were unable to add a dataset to a resource.
Cheers,
2014-04-17 14:24 GMT-03:00 David Megginson <david.megginson at megginson.com>:
> I noticed in 2.2 that (in the default configuration) you need to be a
> "member" of a group to add datasets to it now. I don't see a ckan.auth.*
> setting to re-enable letting anyone add a dataset to any group -- we we need
> to write a permissions handler to restore the old behaviour, I wonder?
>
>
> Cheers, David
>
>
> On Thu, Apr 17, 2014 at 10:58 AM, Stefan Oderbolz <stefan.oderbolz at liip.ch
> > wrote:
>
>> Hi there,
>>
>> we encouter a strange behaviour on CKAN 2.0.3:
>>
>> - User Anne creates a new group called "Books"
>> - User Anne adds a new datasets and adds it to the group "Books"
>> - The new dataset gets saved and can be reached via the "Books" group
>>
>> so far so good, but:
>>
>> - User Phil adds a new dataset and adds it to the group "Books"
>> - The new dataset gets saved and is not in the "Books" group (though no
>> error is shown)
>> - If the Phil edits the dataset there is actually no group shown,
>> reselecting the "Books" group and saving the dataset doesn't show an error,
>> but the dataset is still not added to the "Books" group
>>
>> It appears that as a user you are not allowed to add datasets to groups
>> that you didn't create. Is this true? Why does the frontend not show an
>> error to indicate this? Or should it be possible and there is a bug?
>>
>> I couldn't really find up to date documentation about this. It seems CKAN
>> encourages the usage of organizations over groups. Is that correct?
>>
>> If anybody has some insights, this would be very helpful.
>>
>> Best regards
>> Stefan
>>
>> --
>> Liip AG // Feldstrasse 133 // CH-8004 Zurich
>> Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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
>
>
--
Vítor Baptista
Developer | http://vitorbaptista.com |
LinkedIn<http://www.linkedin.com/in/vitorbaptista>|
@vitorbaptista <http://twitter.com/vitorbaptista>
The Open Knowledge Foundation <http://okfn.org>
*Empowering through Open Knowledge*
http://okfn.org/ | @okfn <http://twitter.com/okfn> | OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/> | Newsletter<http://okfn.org/about/newsletter/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140417/b2e5672b/attachment-0003.html>
More information about the ckan-dev
mailing list