code: func checkRules(rules []services.Rule, kind string, verbs []string) bool {
  	for _, rule := range rules {
  		if rule.HasResource(kind) || rule.HasResource(services.Wildcard) {
  			for _, verb := range verbs {
  				if rule.HasVerb(verb) || rule.HasVerb(services.Wildcard) {
  					return true
  				}
  			}
  		}
  	}
  	return false
  }
docs: // checkRules returns true if any of the provided rules contain specified resource/verbs.