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

Authorize all API requests #887

Closed
jrjohnson opened this issue Jul 13, 2015 · 1 comment
Closed

Authorize all API requests #887

jrjohnson opened this issue Jul 13, 2015 · 1 comment
Labels

Comments

@jrjohnson
Copy link
Member

Symfony role voters seem to be the way to go.

For each domain object we will create a role voter which will decide if a user can 'view', 'edit', or 'delete' the object. This allows us to customize the logic for a Course vs a MeshTerm.

Each entity accessible from a controller will need a separate voter. I think we will also need to check the relationships for each entity before returning the final API response, but I'm not sure how to do that yet.

@jrjohnson
Copy link
Member Author

Duplicate of #923

This was referenced Aug 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant