Auth patch to fix unauthenticated access bug; supplied by Andrew Martin @ Newcastle