mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
realm_export: Add realm_export_consent feature to API.
Fixes part of #31201.
This commit is contained in:
committed by
Tim Abbott
parent
70b6e46516
commit
eaee5763d6
@@ -872,6 +872,15 @@ def check_realm_export(
|
||||
assert has_failed_timestamp == (export["failed_timestamp"] is not None)
|
||||
|
||||
|
||||
realm_export_consent_event = event_dict_type(
|
||||
[
|
||||
("type", Equals("realm_export_consent")),
|
||||
("user_id", int),
|
||||
("consented", bool),
|
||||
]
|
||||
)
|
||||
check_realm_export_consent = make_checker(realm_export_consent_event)
|
||||
|
||||
realm_linkifier_type = DictType(
|
||||
required_keys=[
|
||||
("pattern", str),
|
||||
|
||||
Reference in New Issue
Block a user