A CKAN extension to allow organization members to create datasets, and edit or delete the datasets they have created.
This extension changes the permissions of users with the ‘Member’ role in an organization allowing them to create datasets, and to edit or delete the datasets they have created. Unlike users with the ‘Editor’ role, they cannot edit or delete datasets created by other users.
Warning: This plugin modifies CKAN’s permission system. The current implementation cannot be considered fully safe and should only be used AT YOUR OWN RISK in a trusted environment. Ensure you run the tests with your plugins enabled.
The following configuration directives are available:
userdatasets.default_auth_module: The name of the module that holds the default implementation of the auth functions. Only change this if you know what you are doing! Defaults to
userdatasets.default_action_module: The name of the module that holds the default implementation of the action functions. Only change this if you know what you are doing! Defaults to
pip install git+https://github.com/NaturalHistoryMuseum/ckanext-userdatasets#egg=ckanext-userdatasets
ckan.pluginsin your configuration file.
The plugin contains both unit tests and functional tests. From the source directory, run:
nosetests --ckan --with-pylons=test.ini ckanext/userdatasets/tests
This assumes that ckan’s test.ini is in ../ckan/test.ini. Adjust accordingly.