refactor: Make acting_user a mandatory kwarg for do_set_realm_message_editing.

This commit is contained in:
shanukun
2021-03-08 09:40:24 +05:30
committed by Tim Abbott
parent 4dc62f962b
commit f8ef7d56b9
2 changed files with 3 additions and 1 deletions

View File

@@ -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,