Correctly remove usergroup shares on removing group members#22015
Conversation
|
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 31122: failureintegration-auth
Show full log |
MorrisJobke
left a comment
There was a problem hiding this comment.
Tested and verified. Backport down to stable18 should work (the UserRemovedEvent event was added then)
Signed-off-by: Joas Schilling <coding@schilljs.com>
f24ee81 to
5993bd4
Compare
|
Rebased and squashed |
|
/backport to stable19 |
|
/backport to stable18 |
|
In the DB backend it is only triggered on user deletion: server/lib/private/User/User.php Line 224 in cb05782 |
|
The user removal from a group is a different event: server/lib/private/Group/Group.php Lines 222 to 227 in caff102 |
Steps
There seems to be inconsistency for LDAP and other group backends. The listened old hook
'OC_User', 'post_removeFromGroup'is not emitted in the normal user/group backend since 16 at least?