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(sql_type = sql_types::UserOrganizationRoleEnum)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum UserOrganizationRole {
|
||||
#[serde(alias = "workspaceAdmin")]
|
||||
WorkspaceAdmin,
|
||||
#[serde(alias = "dataAdmin")]
|
||||
DataAdmin,
|
||||
#[serde(alias = "querier")]
|
||||
Querier,
|
||||
#[serde(alias = "restrictedQuerier")]
|
||||
RestrictedQuerier,
|
||||
#[serde(alias = "viewer")]
|
||||
Viewer,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue