Directly putting user_type checks into the template rather than storing them.
Docstring changes.