changes for workspace and individual permissions

This commit is contained in:
dal 2025-08-26 15:59:41 -06:00
parent beb332f01a
commit 8411a3907b
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
1 changed files with 6 additions and 1 deletions

View File

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