-
Notifications
You must be signed in to change notification settings - Fork 56
feat: Emit UserShareAccessUpdatedEvent #2289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: provokateurin <[email protected]>
ArtificialOwl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
listening on CircleMemberAddedEvent and CircleMemberRemovedEvent might be better
|
Needs adjustment for nextcloud/server#57564 |
| foreach ($circle->getInheritedMembers() as $inheritedMember) { | ||
| // TODO: Send event for all members at once | ||
| // We already iterate the inherited members, so we don't need to recurse the member circles again | ||
| $this->emitShareAccessUpdateEvent($inheritedMember, ignoreCircles: true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of recursing this should just emit the events directly for Member::TYPE_USER (as users in groups are already expanded).
|
I'm not seeing any sign of the event being emitted in my testing. Either adding or removing a user from a circle doesn't trigger the event listener |
No description provided.