From 8411a3907b89f4d7e81bbcd15202abef4334c3ed Mon Sep 17 00:00:00 2001 From: dal Date: Tue, 26 Aug 2025 15:59:41 -0600 Subject: [PATCH] changes for workspace and individual permissions --- apps/api/libs/database/src/enums.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/api/libs/database/src/enums.rs b/apps/api/libs/database/src/enums.rs index 9b3e0dff2..e31b98f80 100644 --- a/apps/api/libs/database/src/enums.rs +++ b/apps/api/libs/database/src/enums.rs @@ -96,12 +96,17 @@ pub enum TeamToUserRole { PartialOrd, )] #[diesel(sql_type = sql_types::AssetPermissionRoleEnum)] -#[serde(rename_all = "camelCase")] +#[serde(rename_all = "snake_case")] pub enum AssetPermissionRole { + #[serde(alias = "owner")] Owner, + #[serde(alias = "fullAccess")] FullAccess, + #[serde(alias = "canEdit")] CanEdit, + #[serde(alias = "canFilter")] CanFilter, + #[serde(alias = "canView")] CanView, }