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