peer is a public data
This commit is contained in:
parent
847fce07bb
commit
2ccb57ffb0
@ -92,5 +92,15 @@ func (d *CollaborativeArea) GetAccessor(request *tools.APIRequest) utils.Accesso
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (d *CollaborativeArea) Trim() *CollaborativeArea {
|
func (d *CollaborativeArea) Trim() *CollaborativeArea {
|
||||||
|
if ok, _ := (&peer.Peer{AbstractObject: utils.AbstractObject{UUID: d.CreatorID}}).IsMySelf(); !ok {
|
||||||
|
d.AllowedPeersGroup = map[string][]string{}
|
||||||
|
}
|
||||||
return d
|
return d
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (d *CollaborativeArea) StoreDraftDefault() {
|
||||||
|
d.AllowedPeersGroup = map[string][]string{
|
||||||
|
d.CreatorID: []string{"*"},
|
||||||
|
}
|
||||||
|
d.IsDraft = false
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user