Add authentication #1
|
@ -28,8 +28,9 @@ const AUTH_HEADER: &'static str = "Authentication";
|
||||||
|
|
||||||
|
|
||||||
#[derive(Debug, DbEnum, Deserialize, Clone)]
|
#[derive(Debug, DbEnum, Deserialize, Clone)]
|
||||||
#[serde(rename_all = "kebab-case")]
|
#[serde(rename_all = "lowercase")]
|
||||||
pub enum Role {
|
pub enum Role {
|
||||||
|
#[db_rename = "admin"]
|
||||||
Admin,
|
Admin,
|
||||||
#[db_rename = "zoneadmin"]
|
#[db_rename = "zoneadmin"]
|
||||||
ZoneAdmin,
|
ZoneAdmin,
|
||||||
|
|
Loading…
Reference in New Issue