Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

actions: Make acting_user manadatory kwarg for do_change_user_setting.

Sahil Batra991efaf45040
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py
index 877ec2e667e..7f3174278f7 100644
--- a/zerver/lib/actions.py
+++ b/zerver/lib/actions.py
@@ -5038,7 +5038,8 @@ def do_change_user_setting(
user_profile: UserProfile,
setting_name: str,
setting_value: Union[bool, str, int],
- acting_user: Optional[UserProfile] = None,
+ *,
+ acting_user: Optional[UserProfile],
) -> None:
old_value = getattr(user_profile, setting_name)
event_time = timezone_now()