openplans/openblock — pull request #32 by rebecca-caktus (2012-07-13 20:40:22+00:00)
Title: Fix check for user authentication

The alert signup view returned a 500 error when an unauthenticated user attempted to sign up, because the code attempts to create an alert for a non-existant User.

Calling ```request.user``` returns a non-null object, even for an unauthenticated user. To check for when a user is logged in, ```request.user.is_authenticated()``` should be used.