realm: Create RealmAuditLog entry when adding realm playgrounds.

This commit also adds 'acting_user' parameter to
do_add_realm_playground function.

Fixes a part of #21268.
This commit is contained in:
Sahil Batra
2022-03-11 19:46:04 +05:30
committed by Tim Abbott
parent 9fd9c5f1d2
commit dea3389045
7 changed files with 61 additions and 5 deletions

View File

@@ -302,7 +302,7 @@ def remove_realm_playground() -> Dict[str, object]:
pygments_language="Python",
url_prefix="https://python.example.com",
)
playground_id = do_add_realm_playground(get_realm("zulip"), **playground_info)
playground_id = do_add_realm_playground(get_realm("zulip"), acting_user=None, **playground_info)
return {
"playground_id": playground_id,
}