Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A user can't list all private datasets via the API #3176

Closed
davidread opened this issue Jul 28, 2016 · 3 comments
Closed

A user can't list all private datasets via the API #3176

davidread opened this issue Jul 28, 2016 · 3 comments
Assignees

Comments

@davidread
Copy link
Contributor

CKAN Version if known (or site URL)

Master

Please describe the expected behaviour

A user should be able to get a list of all the datasets available to him/her - including private ones via the API.

Please describe the actual behaviour

The only way I can see to get private ones is by using user_show include_datasets=True. However that only includes private ones created by that user. It excludes other private ones created in the organization by other users.

What steps can be taken to reproduce the issue?

I was just answering this question on SO by reading the code. http://stackoverflow.com/questions/38625786/how-to-obtain-a-given-users-dateset-listboth-public-and-private-through-ckan/38629242#38629242

@LinJianping
Copy link

In my opinion, the organization administrator should have privileges to decide whether the members can access all the datasets or those created by themselves.

@wardi
Copy link
Contributor

wardi commented Jul 28, 2016

package_search should return private datasets when you specify an organzation you're a member of like the organization pages do, except that our org controller is using a context parameter to make that work. We should fix that. https://github.com/ckan/ckan/blob/master/ckan/controllers/group.py#L297-L303

@wardi
Copy link
Contributor

wardi commented Aug 29, 2016

fixed by #3191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants