Add logic to redirect unauthorized users.

Add logic to prevent unauthorized users from creating new
assignments.