diff --git a/src/api2/access.rs b/src/api2/access.rs index ab76c0d5..f5855ede 100644 --- a/src/api2/access.rs +++ b/src/api2/access.rs @@ -137,8 +137,6 @@ fn change_password( if userid == "root@pam" { allowed = true; } if !allowed { - use crate::config::cached_user_info::CachedUserInfo; - let user_info = CachedUserInfo::new()?; let privs = user_info.lookup_privs(¤t_user, &[]); if (privs & PRIV_PERMISSIONS_MODIFY) != 0 { allowed = true; }