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:
parent
c7203b277e
commit
37b55d9216
4 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Add table
Reference in a new issue