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

Resource View reoder is not working for Non-sysadmin #4416

Closed
Engerrs opened this issue Aug 21, 2018 · 1 comment
Closed

Resource View reoder is not working for Non-sysadmin #4416

Engerrs opened this issue Aug 21, 2018 · 1 comment
Assignees

Comments

@Engerrs
Copy link
Member

@Engerrs Engerrs commented Aug 21, 2018

CKAN Version

2.5, 2.6, 2.7

Expected behaviour

If for example, editor of some Organization tries to re-order the views for a resource, they reordered.

Actual behaviour

When Non-sysadmin user tries to re-order views for a resource, is gives an error that "resource_id" is not found.

To reproduce the issue

Create a new Editor/Admin in Organization, go to some resource of a dataset that has at least two resource views. Try to re-order them.

@Engerrs
Copy link
Member Author

@Engerrs Engerrs commented Aug 22, 2018

I created a small PR fix, but it can be fixed in a couple of ways, like adding this key at update.py similar as it done in package controller or update js by adding new key in resource-view-reorder.js

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

Successfully merging a pull request may close this issue.

None yet
2 participants