better logic for handling a repo that a user does not have access to see the hooks