Correctly apply switches to users

Previously this wasn't doing a type test correctly against the custom user
model to decide whether conditions could apply.