mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
user_groups: Track acting user for user group creation.
This is a prep-commit for populating RealmAuditLogs for changes made to UserGroup. Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
a1bc9adefc
commit
b3aba796f1
@@ -43,7 +43,9 @@ def add_user_group(
|
||||
description: str = REQ(),
|
||||
) -> HttpResponse:
|
||||
user_profiles = user_ids_to_users(members, user_profile.realm)
|
||||
check_add_user_group(user_profile.realm, name, user_profiles, description)
|
||||
check_add_user_group(
|
||||
user_profile.realm, name, user_profiles, description, acting_user=user_profile
|
||||
)
|
||||
return json_success(request)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user