Commit Graph

5 Commits

Author SHA1 Message Date
Kevin Chung
4a128e83dc Adding user deletion from admin panel 2015-01-18 19:17:57 -05:00
Blake Burkhart
2972cf506d Optionally allow unregistered users to view challenges
Add a Config entry `view_challenges_unregistered` to indicate whether
unregistered users can view challenges. Add the setting to the admin config
page.

Add can_view_challenges() to utils to test if a user is either authed, or the
configuration allow unauthenticated users to view the challenges.

Return a HTTP 401 Unauthorized error when the /chals/solves API can't provide
results for an unauthenticated user. This is needed because the client side
code in `chalboard.js` doesn't know if it's logged in or not and requests this
anyway. (And AJAX doesn't handle redirects very well.) Alternately the client
could actually know if they're logged in and not make needless API calls.

When an unregistered user attempts to submit a flag, it will also fail. The
user will be redirected to a login page.
2015-01-07 22:11:31 -06:00
Kevin Chung
ce4766003a Admin teams javascript removes whitespace before opening modal 2015-01-07 21:12:52 -05:00
Kevin Chung
a1f30547d2 Admins can edit users from the admin interface 2015-01-07 21:03:37 -05:00
CodeKevin
376c90189b CTFd code push 2015-01-01 00:45:25 -05:00