Commit 950e9ded authored by Gaël Berthaud-Müller's avatar Gaël Berthaud-Müller
Browse files

fix role renaming

parent ebe15520
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment