src/config/cached_user_info.rs: new helper class

This commit is contained in:
Dietmar Maurer
2020-04-16 09:18:56 +02:00
parent 1ce8a5d0b7
commit 423e656163
3 changed files with 71 additions and 1 deletions

View File

@ -39,7 +39,7 @@ pub const ROLE_DATASTORE_AUDIT: u64 = PRIV_DATASTORE_AUDIT;
pub const ROLE_NAME_NO_ACCESS: &str ="NoAccess";
lazy_static! {
static ref ROLE_NAMES: HashMap<&'static str, u64> = {
pub static ref ROLE_NAMES: HashMap<&'static str, u64> = {
let mut map = HashMap::new();
map.insert("Admin", ROLE_ADMIN);