aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin.rs
diff options
context:
space:
mode:
authorDaniel García <[email protected]>2022-07-15 19:06:09 +0200
committerDaniel García <[email protected]>2022-07-15 19:06:09 +0200
commit7cbcad0e389d6017b941e00051621010066bf796 (patch)
treef6c74e6f56ae186f4ca464a20f98f6d469353f75 /src/api/admin.rs
parentfc5928772b43d7648a2a7ae6c373dcfad0756707 (diff)
parente167798449c0647ac17762f154b2d002564cff34 (diff)
downloadvaultwarden-7cbcad0e389d6017b941e00051621010066bf796.tar.gz
vaultwarden-7cbcad0e389d6017b941e00051621010066bf796.zip
Merge branch 'BlackDex-more-clippy-checks' into main
Diffstat (limited to 'src/api/admin.rs')
-rw-r--r--src/api/admin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/admin.rs b/src/api/admin.rs
index 2565445a..19638ef3 100644
--- a/src/api/admin.rs
+++ b/src/api/admin.rs
@@ -427,7 +427,7 @@ async fn update_user_org_type(data: Json<UserOrgTypeData>, _token: AdminToken, c
}
}
- user_to_edit.atype = new_type as i32;
+ user_to_edit.atype = new_type;
user_to_edit.save(&conn).await
}