actions: Support acting_user=None in check_change_full_name.

do_change_full_name supports it already, so this is a trivial change.
This commit is contained in:
Mateusz Mandera 2021-10-13 14:43:56 +02:00 committed by Tim Abbott
parent 1dec97c925
commit 7c0995b14b
1 changed files with 1 additions and 1 deletions

View File

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