mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-12 01:45:56 -05:00
[PR #6578] [MERGED] Fix posting cipher with readonly collections #7449
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/6578
Author: @BlackDex
Created: 12/20/2025
Status: ✅ Merged
Merged: 12/21/2025
Merged by: @dani-garcia
Base:
main← Head:fix-readonly-collection-post📝 Commits (2)
6973082Fix posting cipher with readonly collections34244eeAdjust code to delete on error📊 Changes
1 file changed (+5 additions, -7 deletions)
View changed files
📝
src/api/core/ciphers.rs(+5 -7)📄 Description
This fix will check if a collection is writeable for the user, and if not error out early instead of creating the cipher first and leaving it. It will also save some database transactions.
Fixes #6562
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.