1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-04 21:25:24 +00:00

Add group_user_added signal

This commit is contained in:
Petr Stribny 2022-06-23 08:47:23 +00:00
parent c7203b277e
commit 37b55d9216
4 changed files with 9 additions and 0 deletions
backend/src/baserow/core
changelog.md
docs/apis

View file

@ -57,6 +57,7 @@ from .signals import (
group_created,
group_updated,
group_deleted,
group_user_added,
group_user_updated,
group_user_deleted,
groups_reordered,
@ -644,6 +645,11 @@ class CoreHandler:
"permissions": invitation.permissions,
},
)
group_user_added.send(
self, group_user_id=group_user.id, group_user=group_user, user=user
)
invitation.delete()
return group_user

View file

@ -6,6 +6,7 @@ group_updated = Signal()
group_deleted = Signal()
group_restored = Signal()
group_user_added = Signal()
group_user_updated = Signal()
group_user_deleted = Signal()
groups_reordered = Signal()

View file

@ -13,6 +13,7 @@ For example:
* Added prefill query parameters for forms. [#852](https://gitlab.com/bramw/baserow/-/issues/852)
* Added possibility to delete own user account [#880](https://gitlab.com/bramw/baserow/-/issues/880)
* Added new `group_user_added` signal that is called when an user accept an invitation to join a group.
### Bug Fixes

View file

@ -126,6 +126,7 @@ are subscribed to the page.
* `group_updated`
* `group_deleted`
* `group_restored`
* `group_user_added`
* `group_user_updated`
* `group_user_deleted`
* `application_created`