Merge "Create an until function to check location permission"