plone / guillotina

Python AsyncIO data API to manage billions of resources
https://guillotina.readthedocs.io/en/latest/
Other
187 stars 51 forks source link

DBUsers Patch Group deletes group from user #1069

Closed bloodbare closed 3 years ago

bloodbare commented 3 years ago

If you patch a group from dbusers with only user_roles, the group from the user objects is deleted.

PATCH: {"user_roles":["guillotina.Reader"]}

May be related with https://github.com/plone/guillotina/blob/master/guillotina/contrib/dbusers/subscribers.py#L68