Validate read access before using the repository hook service.