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:
parent
ca2e0256e1
commit
ea39983f78
40 changed files with 66 additions and 124 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue