Extract the code to determine full access info for a repo.