refactor: Make acting_user a mandatory kwarg for do_set_realm_property.

This commit is contained in:
shanukun
2021-03-01 16:03:24 +05:30
committed by Tim Abbott
parent a2da736181
commit 459710a897
22 changed files with 215 additions and 90 deletions

View File

@@ -769,7 +769,7 @@ def active_humans_in_realm(realm: Realm) -> Sequence[UserProfile]:
def do_set_realm_property(
realm: Realm, name: str, value: Any, acting_user: Optional[UserProfile] = None
realm: Realm, name: str, value: Any, *, acting_user: Optional[UserProfile]
) -> None:
"""Takes in a realm object, the name of an attribute to update, the
value to update and and the user who initiated the update.