Make the requirement of an admin user accessing a certain template a kwarg instead of hardcoded into the function.