code: func (om *Oauth2oauth_2_0Middleware) CheckScopes(scopes []string) bool {
  	if len(om.Scopes) == 0 {
  		return true
  	}
  
  	for _, allowed := range om.Scopes {
  		for _, scope := range scopes {
  			if scope == allowed {
  				return true
  			}
  		}
  	}
  	return false
  }
docs: // CheckScopes checks whether user has needed scopes