From 7c0995b14bc635e02590a128b3633bffd2a13ee3 Mon Sep 17 00:00:00 2001 From: Mateusz Mandera Date: Wed, 13 Oct 2021 14:43:56 +0200 Subject: [PATCH] actions: Support acting_user=None in check_change_full_name. do_change_full_name supports it already, so this is a trivial change. --- zerver/lib/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 244c390402..503a078f93 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