light modification

This commit is contained in:
mr
2025-01-20 13:49:39 +01:00
parent 58b36f2823
commit 67b8215adf
4 changed files with 10 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ type AbstractResource struct {
}
func (r *AbstractResource) GetType() string {
return r.Type
return tools.INVALID.String()
}
func (r *AbstractResource) StoreDraftDefault() {
@@ -85,7 +85,6 @@ func (abs *AbstractIntanciatedResource[T]) SetAllowedInstances(request *tools.AP
}
func (d *AbstractIntanciatedResource[T]) Trim() {
d.AbstractResource.AbstractObject.Type = d.GetType()
if ok, _ := (&peer.Peer{AbstractObject: utils.AbstractObject{UUID: d.CreatorID}}).IsMySelf(); !ok {
for _, instance := range d.Instances {
instance.ClearPeerGroups()