light modification
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user