ckanext-datasetpermissioning
This CKAN extension allows private datasets to be viewed by an extra set of users that may be selected when creating the dataset.
It provides a scheming choices helper that returns a list of non-sysadmin users (sysadmin users can see all private datasets anyway) to give read access.
Requirements
- Requires ckanext-scheming
- Requires the IPermissionLabels feature in recent versions of CKAN
Installation
- Clone the repository:
cd /usr/lib/ckan/default/src
git clone https://github.com/OpenGov-OpenData/ckanext-datasetpermissioning.git
cd ckanext-datasetpermissioning
- Install the extension:
python setup.py develop
Add datasetpermissioning to your CKAN config file’s ckan.plugins setting.
Add this field to your dataset schema:
# extra view-only permission on this dataset for users selected here
- field_name: view_users
label: View Permissions
preset: multiple_select
choices_helper: nonsysadmin_user_choices
display_snippet: null
- Restart CKAN.
Note: This repository was archived by the owner on Apr 26, 2019. It is now read-only.
Contributors
- Ian Ward (wardi)
- Jay Guo (jguo144)