From bb072ba49c23bb9c6ed53e770694608414aac19d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 18 Apr 2020 07:28:25 +0200 Subject: [PATCH] src/api2/access.rs: cleanup --- src/api2/access.rs | 2 -- 1 file changed, 2 deletions(-) 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; }