move user configuration to pbs_config workspace
Also moved memcom.rs and cached_user_info.rs
This commit is contained in:
@ -8,7 +8,7 @@ use pbs_config::token_shadow;
|
||||
|
||||
use crate::api2::types::{Authid, Userid};
|
||||
use crate::auth_helpers::*;
|
||||
use crate::config::cached_user_info::CachedUserInfo;
|
||||
use pbs_config::CachedUserInfo;
|
||||
use crate::tools;
|
||||
|
||||
use hyper::header;
|
||||
|
@ -548,7 +548,7 @@ pub fn send_updates_available(
|
||||
/// Lookup users email address
|
||||
pub fn lookup_user_email(userid: &Userid) -> Option<String> {
|
||||
|
||||
if let Ok(user_config) = crate::config::user::cached_config() {
|
||||
if let Ok(user_config) = pbs_config::user::cached_config() {
|
||||
if let Ok(user) = user_config.lookup::<User>("user", userid.as_str()) {
|
||||
return user.email;
|
||||
}
|
||||
|
@ -6,9 +6,9 @@ use pbs_datastore::{task_log, task_warn};
|
||||
use pbs_datastore::backup_info::BackupInfo;
|
||||
use pbs_datastore::prune::{compute_prune_info, PruneOptions};
|
||||
use pbs_api_types::{Authid, PRIV_DATASTORE_MODIFY};
|
||||
use pbs_config::CachedUserInfo;
|
||||
|
||||
use crate::{
|
||||
config::cached_user_info::CachedUserInfo,
|
||||
backup::DataStore,
|
||||
server::jobstate::Job,
|
||||
server::WorkerTask,
|
||||
|
@ -40,7 +40,7 @@ use super::ApiConfig;
|
||||
|
||||
use crate::api2::types::{Authid, Userid};
|
||||
use crate::auth_helpers::*;
|
||||
use crate::config::cached_user_info::CachedUserInfo;
|
||||
use pbs_config::CachedUserInfo;
|
||||
use crate::tools;
|
||||
use crate::tools::compression::CompressionMethod;
|
||||
use crate::tools::FileLogger;
|
||||
|
Reference in New Issue
Block a user