Parent group can be lost when a groupmanager edits a group
If the groupmanager is not also the groupmanager of the parent, the parent is lost on save.
Updated by Guillaume AGNIERAY 2 months ago
- Target version set to 1.0.0
It happens because the list of groups available only returns the groups managed by the current user.
So, the current parent id cannot be recovered from the select displayed to the groupmanager.
I opened a PR whith a fix proposal (among others improvements) : https://github.com/galette/galette/pull/307/commits/096ca2c663be0b5401598bb5e5f7b8e26978a6c4
In such a case, I suppose it's OK that the parent cannot be modified by the groupmanager.
Only an admin or staff member is able to set the parent to
none so that the groupmanager can change the parent to another group of his/her own afterwards.