src/api2/access.rs: cleanup
This commit is contained in:
		@ -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; }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user