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: Support acting_user=None in check_change_full_name.

Mateusz Mandera7c0995b14bc6
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py
index 244c390402a..503a078f930 100644
--- a/zerver/lib/actions.py
+++ b/zerver/lib/actions.py
@@ -4323,7 +4323,7 @@ def do_change_full_name(
def check_change_full_name(
- user_profile: UserProfile, full_name_raw: str, acting_user: UserProfile
+ user_profile: UserProfile, full_name_raw: str, acting_user: Optional[UserProfile]
) -> str:
"""Verifies that the user's proposed full name is valid. The caller
is responsible for checking check permissions. Returns the new