[PR #4592] [MERGED] add group support for Cipher::get_collections() #2782

Open
opened 2025-10-09 18:11:28 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/4592
Author: @stefan0xC
Created: 5/26/2024
Status: Merged
Merged: 7/4/2024
Merged by: @dani-garcia

Base: mainHead: fix-collection-permission-issue


📝 Commits (5)

  • 49d07ed add group support for Cipher::get_collections()
  • 37b2143 fix Collection::is_writable_by_user()
  • e97088c differentiate the /collection endpoints
  • 9af6f86 return cipherDetails on post_collections_update()
  • a74c7bf add collections_v2 endpoint

📊 Changes

3 files changed (+267 additions, -74 deletions)

View changed files

📝 src/api/core/ciphers.rs (+92 -8)
📝 src/db/models/cipher.rs (+118 -25)
📝 src/db/models/collection.rs (+57 -41)

📄 Description

join group infos assigned to a collection to check whether user has been given access to all collections via any group or they have access to a specific collection via any group membership

fixes #4588


🔄 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/4592 **Author:** [@stefan0xC](https://github.com/stefan0xC) **Created:** 5/26/2024 **Status:** ✅ Merged **Merged:** 7/4/2024 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `fix-collection-permission-issue` --- ### 📝 Commits (5) - [`49d07ed`](https://github.com/dani-garcia/vaultwarden/commit/49d07ed5aae93b4282af63f1cee81fd53ea1d0fa) add group support for Cipher::get_collections() - [`37b2143`](https://github.com/dani-garcia/vaultwarden/commit/37b2143813906f9634021c52bf71bc81ee7b4d0d) fix Collection::is_writable_by_user() - [`e97088c`](https://github.com/dani-garcia/vaultwarden/commit/e97088c119771c69ca13f2ecb90ba9bd92b58f7b) differentiate the /collection endpoints - [`9af6f86`](https://github.com/dani-garcia/vaultwarden/commit/9af6f864df2133806622262e12f4df64cd3024d8) return cipherDetails on post_collections_update() - [`a74c7bf`](https://github.com/dani-garcia/vaultwarden/commit/a74c7bf20ffb212213129e9f70b860905a8f4290) add collections_v2 endpoint ### 📊 Changes **3 files changed** (+267 additions, -74 deletions) <details> <summary>View changed files</summary> 📝 `src/api/core/ciphers.rs` (+92 -8) 📝 `src/db/models/cipher.rs` (+118 -25) 📝 `src/db/models/collection.rs` (+57 -41) </details> ### 📄 Description join group infos assigned to a collection to check whether user has been given access to all collections via any group or they have access to a specific collection via any group membership fixes #4588 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2025-10-09 18:11:28 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#2782