pub(crate) fn match_current_system_user(
current_user: &User,
target_user: &User,
) -> Result<(), Error>
Expand description
Checks whether the current system user is the targeted user.
Compares two [User
] instances and fails if they are not the same.
ยงErrors
Returns an error if the current system user is not the targeted user.