cli.check_access checks if user can read/write repositories