code: func (p *PolicyAuthorizer) EventWrite(name string) bool {
  	// Longest-prefix match event names
  	if rule, ok := getPolicy(name, p.eventRules); ok {
  		if allow, recurse := enforce(rule.(string), PolicyWrite); !recurse {
  			return allow
  		}
  	}
  
  	// No match, use parent
  	return p.parent.EventWrite(name)
  }
docs: // EventWrite is used to determine if new events can be created
  // (fired) by the policy.