mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
realm: Create RealmAuditLog entry when removing realm playgrounds.
This commit also adds 'acting_user' parameter to do_remove_realm_playground function. Fixes a part of #21268.
This commit is contained in:
@@ -62,5 +62,5 @@ def delete_realm_playground(
|
||||
request: HttpRequest, user_profile: UserProfile, playground_id: int
|
||||
) -> HttpResponse:
|
||||
realm_playground = access_playground_by_id(user_profile.realm, playground_id)
|
||||
do_remove_realm_playground(user_profile.realm, realm_playground)
|
||||
do_remove_realm_playground(user_profile.realm, realm_playground, acting_user=user_profile)
|
||||
return json_success(request)
|
||||
|
||||
Reference in New Issue
Block a user