Removed old experiments settings and staff mode flag, added new StaffMode global that is set based on the webserver's staff bit
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
use std::path::PathBuf;
|
||||
use std::{ops::Deref, path::PathBuf};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct StaffMode(pub bool);
|
||||
|
||||
impl Deref for StaffMode {
|
||||
type Target = bool;
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
pub static ref HOME: PathBuf = dirs::home_dir().expect("failed to determine home directory");
|
||||
|
||||
Reference in New Issue
Block a user