-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PM-13360] Respect manage permission to assign collections #4190
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4190 +/- ##
==========================================
- Coverage 89.02% 88.99% -0.04%
==========================================
Files 445 445
Lines 38819 38850 +31
Branches 5440 5458 +18
==========================================
+ Hits 34558 34573 +15
Misses 2368 2368
- Partials 1893 1909 +16 ☔ View full report in Codecov by Sentry. |
17d36f0
to
9850607
Compare
9d8e0f0
to
76954d4
Compare
4d2f1c2
to
70a7e99
Compare
app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/addedit/VaultAddEditScreen.kt
Outdated
Show resolved
Hide resolved
76954d4
to
e89cc11
Compare
No New Or Fixed Issues Found |
This commit prevents users from assigning items to collections if the item is already in a read-only collection where the user does not have "manage" permission. This change ensures that users with limited permissions cannot modify items in a way that violates the collection's access controls.
e89cc11
to
7e1e8d3
Compare
@@ -7,9 +7,12 @@ import com.bitwarden.vault.CipherView | |||
* | |||
* @property cipher The cipher view for the item. | |||
* @property totpCodeItemData The data for the totp code. | |||
* @property canDelete Whether the item can be deleted. | |||
* @property canAssociateToCollections Whether the item can be associated to a collection. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-13360
📔 Objective
This commit prevents users from assigning items to collections if the item is already in a read-only collection where the user does not have "manage" permission.
This change ensures that users with limited permissions cannot modify items in a way that violates the collection's access controls.
📸 Screenshots
Coming soon!
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmedissue and could potentially benefit from discussion
:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes