[ckan-dev] Announce: Plugin to authorize organization members to create/edit/delete own datasets

Alice Heaton a.heaton at nhm.ac.uk
Tue Jun 17 09:11:17 UTC 2014


On 16/06/14 21:12, Sean Hammond wrote:
>> We have made the first release of the ckanext-userdatasets plugin
>> which modifies the 'member' role such that a user with the 'member'
>> role in an organization can create datasets (or other packages) and
>> edit/delete the datasets they have created (this includes
>> adding/editing/deleting resources for the datasets they have created).
>> Unlike users with the editor role however, they cannot edit/delete
>> datasets created by other users.
> Sounds useful!
>
> Have you seen the section in the contrib guide about writing tests for
> auth functions? Might help to feel safer about a potentially
> "dangerous" plugin like this:
>
> http://docs.ckan.org/en/latest/contributing/testing.html#module-ckan.new_tests.logic.auth
>
> Though I see you already have good tests using your own approach.
Thanks, I had not seen this. As you've seen I already wrote a number of 
tests - both unit tests and functional tests. I will write another set 
of tests with the recommended approach! As you say, a potentially 
"dangerous" plugin cannot have too many tests :-)

Thanks,
Alice

> _______________________________________________
> 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