[PR #6578] [MERGED] Fix posting cipher with readonly collections #7449

Closed
opened 2026-03-07 21:17:46 -06:00 by GiteaMirror · 0 comments
Owner

📋 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: mainHead: fix-readonly-collection-post


📝 Commits (2)

  • 6973082 Fix posting cipher with readonly collections
  • 34244ee Adjust 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.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/6578 **Author:** [@BlackDex](https://github.com/BlackDex) **Created:** 12/20/2025 **Status:** ✅ Merged **Merged:** 12/21/2025 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `fix-readonly-collection-post` --- ### 📝 Commits (2) - [`6973082`](https://github.com/dani-garcia/vaultwarden/commit/69730824b9741e34214cbdce6cf93158f2a6f473) Fix posting cipher with readonly collections - [`34244ee`](https://github.com/dani-garcia/vaultwarden/commit/34244eed9496f40cfe1e70a3265a8a73263fb38e) Adjust code to delete on error ### 📊 Changes **1 file changed** (+5 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/api/core/ciphers.rs` (+5 -7) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-07 21:17:46 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#7449