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

Refactor users_controller to use CanCanCan for authorisation #2084

Merged
merged 2 commits into from Dec 12, 2018

Conversation

gravitystorm
Copy link
Collaborator

This PR builds on #2083 , so it should wait until that is approved before reviewing.

The Authenticate#allow? method (from oauth-plugin) sets current_user as a side
effect of checking the token. But this allows a valid token to access
all actions that are available to that user, beyond the capabilities for
that token.
@tomhughes tomhughes merged commit ca59610 into openstreetmap:master Dec 12, 2018
@gravitystorm gravitystorm deleted the user_auth branch January 9, 2019 14:18
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

Successfully merging this pull request may close these issues.

None yet

2 participants