discourse/discourse — pull request #862 by mattvanhorn (2013-05-20 16:28:28+00:00)
Title: refactor guardian class for clarity & correctness

introduce NullUser to avoid type-checking
DRY up code
reduce number of multiple returns
remove some redundant/impossible logic branches
add pending test for possible bug