func (sp standardPermissions) permissionsForEndpoint(endpoint string) []permission {
	var endpointPermissions []permission
	for _, p := range sp.permissions {
		for _, e := range p.Endpoints {
			if e == endpoint {
				endpointPermissions = append(endpointPermissions, p)
			}
		}
	}
	return endpointPermissions
}
// permissionsForEndpoint returns a list of Permissions required by an endpoint
permissionsForEndpoint returns a list of Permissions required by an endpoint
// permissionsForEndpoint returns a list of Permissions required by an endpoint
func (sp standardPermissions) permissionsForEndpoint(endpoint string) []permission {
	var endpointPermissions []permission
	for _, p := range sp.permissions {
		for _, e := range p.Endpoints {
			if e == endpoint {
				endpointPermissions = append(endpointPermissions, p)
			}
		}
	}
	return endpointPermissions
}
func ( sp standardPermissions ) permissionsForEndpoint ( endpoint string ) [ ] permission { var endpointPermissions [ ] permission for _ , p := range sp . permissions { for _ , e := range p . Endpoints { if e == endpoint { endpointPermissions = append ( endpointPermissions , p ) } } } return endpointPermissions }
permissionsForEndpoint returns a list of Permissions required by an endpoint
permissionsForEndpoint returns a list of Permissions required by an endpoint