From b0e7494d6920e87bc863aa640113ca9d1d4d1222 Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Sat, 15 Feb 2025 09:40:00 +0100 Subject: [PATCH] Clarify the role of UserPolicyService::can_list_user's arguments And rename touser to to_user for consistency with StandardUserPolicy. --- sable_network/src/policy/user_policy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sable_network/src/policy/user_policy.rs b/sable_network/src/policy/user_policy.rs index bd76243f..8f20d175 100644 --- a/sable_network/src/policy/user_policy.rs +++ b/sable_network/src/policy/user_policy.rs @@ -7,7 +7,7 @@ pub trait UserPolicyService { fn can_set_umode(&self, user: &wrapper::User, mode: UserModeFlag) -> PermissionResult; /// Determine whether a given user can unset a given user mode on themselves fn can_unset_umode(&self, user: &wrapper::User, mode: UserModeFlag) -> PermissionResult; - /// Determine whether one user can discover another without knowing their nick + /// Determine whether `to_user` can discover `user` without knowing their nick /// (eg. with `WHO *`) - fn can_list_user(&self, touser: &User, user: &User) -> PermissionResult; + fn can_list_user(&self, to_user: &User, user: &User) -> PermissionResult; }