whitelist emails leaking handled
@ mention of reviewers`
@Didayolo`
A brief description of the purpose of the changes contained in this PR.
- Whitelist emails were leaked in API. Now it is handled in a way that only loggedin users and API calls from inside codabench can access it.
- fixed a console error
- removed console prints
Issues this PR resolves
A checklist for hand testing
-
before deploying this change access http://localhost/api/competitions/1/
and check that whitelist_emails is there -
after deploying, you should not see whitelist_emails
Checklist
-
Code review by me -
Hand tested by me -
I'm proud of my work -
Code review by reviewer -
Hand tested by reviewer -
CircleCi tests are passing -
Ready to merge