fix role renaming

main
Hannaeko 2021-04-03 02:19:58 -04:00
parent ebe1552032
commit 950e9ded44
1 changed files with 2 additions and 1 deletions

View File

@ -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,