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

"Add some resources" link shown to unauthorized users #1766

Merged
merged 2 commits into from
Jun 17, 2014

Conversation

amercader
Copy link
Member

Also the stand-alone new resource page (/dataset/new_resource/dataset_id) shows to unauthorized users

Add auth check to the `new_resource` action on the package controller so
the form is not shown to unauthorized users.
@nigelbabu nigelbabu self-assigned this Jun 12, 2014
@wardi
Copy link
Contributor

wardi commented Jun 12, 2014

is this related to #1664 ?

@amercader
Copy link
Member Author

The actual authorization for creating resources is basically the same than for creating/updating the datasets they belong to, so in a way yes. But this is just a matter of showing links and forms on the frontend when you are not authorized, not about how the authorization per se works

@nigelbabu
Copy link
Contributor

Looks good to me. The test failures are unrelated, so I'm merging this in.

nigelbabu added a commit that referenced this pull request Jun 17, 2014
"Add some resources" link shown to unauthorized users
@nigelbabu nigelbabu merged commit 3564807 into master Jun 17, 2014
@nigelbabu nigelbabu deleted the 1766-resource-create-link branch June 17, 2014 08:51
nigelbabu added a commit that referenced this pull request Jun 30, 2014
amercader added a commit that referenced this pull request Jul 16, 2014
Add auth check to the `new_resource` action on the package controller so
the form is not shown to unauthorized users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants