mirror of https://github.com/buster-so/buster.git
Merge pull request #442 from buster-so/dal/role-casing-bug
enums for org role moved over
This commit is contained in:
commit
6d39d72819
|
@ -37,12 +37,17 @@ pub enum MessageFeedback {
|
||||||
diesel::FromSqlRow,
|
diesel::FromSqlRow,
|
||||||
)]
|
)]
|
||||||
#[diesel(sql_type = sql_types::UserOrganizationRoleEnum)]
|
#[diesel(sql_type = sql_types::UserOrganizationRoleEnum)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "snake_case")]
|
||||||
pub enum UserOrganizationRole {
|
pub enum UserOrganizationRole {
|
||||||
|
#[serde(alias = "workspaceAdmin")]
|
||||||
WorkspaceAdmin,
|
WorkspaceAdmin,
|
||||||
|
#[serde(alias = "dataAdmin")]
|
||||||
DataAdmin,
|
DataAdmin,
|
||||||
|
#[serde(alias = "querier")]
|
||||||
Querier,
|
Querier,
|
||||||
|
#[serde(alias = "restrictedQuerier")]
|
||||||
RestrictedQuerier,
|
RestrictedQuerier,
|
||||||
|
#[serde(alias = "viewer")]
|
||||||
Viewer,
|
Viewer,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue