mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-08 05:47:07 +09:00
GO-5589: Allow modification of bundled but not-readonly relations
This commit is contained in:
parent
b7586c05d9
commit
94d9d231f7
1 changed files with 2 additions and 1 deletions
|
@ -221,7 +221,8 @@ func (s *Service) UpdateProperty(ctx context.Context, spaceId string, propertyId
|
|||
return apimodel.Property{}, err
|
||||
}
|
||||
|
||||
if bundle.HasRelation(domain.RelationKey(prop.RelationKey)) {
|
||||
rel, err := bundle.PickRelation(domain.RelationKey(prop.RelationKey))
|
||||
if err != nil && rel.ReadOnly {
|
||||
return apimodel.Property{}, ErrPropertyCannotBeUpdated
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue