[PM-40350] ManagePolicies should allow read-only access to claimed organization domains - #8220
Conversation
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the authorization change to Code Review DetailsNo findings at or above the reporting threshold. Minor observation not worth an inline comment: the new inline check duplicates the organization existence lookup already in |
…ead-access-claimed-domains
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8220 +/- ##
=======================================
Coverage 63.27% 63.27%
=======================================
Files 2383 2383
Lines 103919 103925 +6
Branches 9408 9410 +2
=======================================
+ Hits 65753 65759 +6
Misses 35916 35916
Partials 2250 2250 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-40350
📔 Objective
This PR modifies policy gated logic to allow users having the
ManagePoliciesrole to access a read-only endpoint and enumerate claimed domains for organizations they belong to and have been granted this role on behalf of.This is necessary so that the Send Policy edit dialog populates domains claimed by an organization, and is a proper fix compared to the previous bandaid.