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 authentication checks to reminder cards page #195

Merged
merged 1 commit into from
Jul 13, 2016

Conversation

joshuablake
Copy link
Contributor

Checks that the correct teacher is logged in.
Return the same error code (404) if either the wrong teacher is logged in or if the class the reminder cards are requested for does not exist. This prevents any information being leaked about which classes exist in the database.

@CelineBoudier
Copy link
Contributor

Thanks Josh, can you please squash the commits and fix the codeclimate issue?

Adds several security features:
- Do not allow teacher's to view the cards for classes they do not have
  access to.
- Return 404 if cards for a class that does not exist are requested
  (rather than erroring).
- Also return 404 if the teacher does not have access to this class
  (rather than leaking that the class exists).

Tests for the above and for the same issues in other views are also
included.
@CelineBoudier CelineBoudier merged commit 5cfde2c into ocadotechnology:master Jul 13, 2016
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