Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify the role of UserPolicyService::can_list_user's arguments #150

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sable_network/src/policy/user_policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Loading