aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin.rs
diff options
context:
space:
mode:
authorBlackDex <[email protected]>2023-02-27 16:37:58 +0100
committerBlackDex <[email protected]>2023-02-27 16:37:58 +0100
commit7ec00d3850f0c058314b4bc4a3c5d1094882c434 (patch)
tree522ee7ddb274a0f0ad9befb3dcf3f7f4f43fbafc /src/api/admin.rs
parentaf6d17b7013d4d82fac916cb867c0dd97da9c301 (diff)
downloadvaultwarden-7ec00d3850f0c058314b4bc4a3c5d1094882c434.tar.gz
vaultwarden-7ec00d3850f0c058314b4bc4a3c5d1094882c434.zip
Fix the web-vault v2023.2.0 API calls
- Supports the new Collection/Group/User editing UI's - Support `/partial` endpoint for cipher updating to allow folder and favorite update for read-only ciphers. - Prevent `Favorite`, `Folder`, `read-only` and `hide-passwords` from being added to the organizational sync. - Added and corrected some `Object` key's to the output json. Fixes #3279
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 d875d8be..67ab1756 100644
--- a/src/api/admin.rs
+++ b/src/api/admin.rs
@@ -627,7 +627,7 @@ async fn diagnostics(_token: AdminToken, ip_header: IpHeader, mut conn: DbConn)
"latest_release": latest_release,
"latest_commit": latest_commit,
"web_vault_enabled": &CONFIG.web_vault_enabled(),
- "web_vault_version": web_vault_version.version,
+ "web_vault_version": web_vault_version.version.trim_start_matches('v'),
"latest_web_build": latest_web_build,
"running_within_docker": running_within_docker,
"docker_base_image": if running_within_docker { docker_base_image() } else { "Not applicable" },