Moving the check for Admin user to the layout file (this is needed in the coffee scripts).