mirror of https://github.com/zulip/zulip.git
refactor: Make acting_user a mandatory kwarg for do_set_realm_message_editing.
This commit is contained in:
parent
4dc62f962b
commit
f8ef7d56b9
|
@ -859,7 +859,8 @@ def do_set_realm_message_editing(
|
|||
allow_message_editing: bool,
|
||||
message_content_edit_limit_seconds: int,
|
||||
allow_community_topic_editing: bool,
|
||||
acting_user: Optional[UserProfile] = None,
|
||||
*,
|
||||
acting_user: Optional[UserProfile],
|
||||
) -> None:
|
||||
old_values = dict(
|
||||
allow_message_editing=realm.allow_message_editing,
|
||||
|
|
|
@ -1140,6 +1140,7 @@ class NormalActionsTest(BaseAction):
|
|||
allow_message_editing,
|
||||
message_content_edit_limit_seconds,
|
||||
False,
|
||||
acting_user=None,
|
||||
)
|
||||
)
|
||||
check_realm_update_dict("events[0]", events[0])
|
||||
|
|
Loading…
Reference in New Issue