light modification
This commit is contained in:
parent
8e4ebbf622
commit
2452d37acf
@ -81,11 +81,11 @@ func (abs *AbstractIntanciatedResource[T]) ConvertToPricedResource(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (abs *AbstractIntanciatedResource[T]) SetAllowedInstances(request *tools.APIRequest) {
|
func (abs *AbstractIntanciatedResource[T]) SetAllowedInstances(request *tools.APIRequest) {
|
||||||
|
abs.AbstractResource.AbstractObject.Type = abs.GetType()
|
||||||
abs.Instances = verifyAuthAction[T](abs.Instances, request)
|
abs.Instances = verifyAuthAction[T](abs.Instances, request)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *AbstractIntanciatedResource[T]) Trim() {
|
func (d *AbstractIntanciatedResource[T]) Trim() {
|
||||||
d.AbstractResource.AbstractObject.Type = d.GetType()
|
|
||||||
if ok, _ := (&peer.Peer{AbstractObject: utils.AbstractObject{UUID: d.CreatorID}}).IsMySelf(); !ok {
|
if ok, _ := (&peer.Peer{AbstractObject: utils.AbstractObject{UUID: d.CreatorID}}).IsMySelf(); !ok {
|
||||||
for _, instance := range d.Instances {
|
for _, instance := range d.Instances {
|
||||||
instance.ClearPeerGroups()
|
instance.ClearPeerGroups()
|
||||||
|
Loading…
Reference in New Issue
Block a user