code: func (a *authenticator) getPermissionsForURL(url, method string) []string {
  	var groups []string
  	for groupName, permissions := range a.groupDb {
  		for _, permissions := range permissions {
  			// Check URL
  			if permissions.Url == url {
  				// Check allowed methods
  				for _, allowed := range permissions.AllowedMethods {
  					if allowed == method {
  						groups = append(groups, groupName)
  					}
  				}
  			}
  		}
  	}
  	return groups
  }
docs: // Returns all permission groups provided URL/Method is allowed for