diff --git a/models/resources/dynamic.go b/models/resources/dynamic.go index 5c27219..55de50f 100755 --- a/models/resources/dynamic.go +++ b/models/resources/dynamic.go @@ -57,11 +57,12 @@ func (d *DynamicResource) SetAllowedInstances(request *tools.APIRequest, instanc b, _ := json.Marshal(d.Filters) json.Unmarshal(b, &m) a, _, _ := access.Search(dbs.FiltersFromFlatMap(m, v), "", false, 0, 100000) - fmt.Println(a, dbs.FiltersFromFlatMap(m, v), d.Filters, v) d.PeerIds = map[int]string{} d.ResourceIds = map[int]string{} for _, res := range a { + fmt.Println("INSTANCE FOUND", res, request) for _, i := range res.(ResourceInterface).SetAllowedInstances(request, instance_id...) { + fmt.Println("INSTANCE ADD", i, request) d.PeerIds[len(d.Instances)] = res.GetCreatorID() d.ResourceIds[len(d.Instances)] = res.GetID() d.Instances = append(d.Instances, i)