PROD-9975#4965
Conversation
…lf) in the Specific recipient list The Messages → Access Controls "can send message to → Specific" checkbox list was missing Administrator and the sender's own role, diverging from the design/legacy where the recipient list is the full role set. Root cause: a single admin-excluded role list fed both the sender rows (correctly excludes admins) and the recipient checkboxes (which must include them), and the React additionally filtered out the sender's own role. - Pro: bb_get_options_for_type() gains an $include_default flag that keeps default-flagged items (administrators); the AJAX handler and initial field data now also expose `recipient_options` (the full list) alongside the unchanged admin-excluded `options`. - Platform: AccessControlField renders the threaded "Specific" checkboxes from the full recipient_options (fallback to options) and no longer drops the sender's own role. Sender toggle rows remain admin-excluded. Saved values and runtime access checks are unaffected. Matches legacy multiple-options.php behaviour.
… bordered cards The Groups → Access Controls "Join Groups" field rendered each role toggle inside a bordered card, unlike "Create Groups" (and the other non-threaded permission fields) which render as a plain toggle list. The card border/padding on .bb-access-control-field__toggle-item is intended for threaded fields (Send Messages, Connections). Non-threaded fields strip it via a [data-field-name] override list, but bb-access-control-join-groups was missing from that list, so it fell back to the card styling. Add bb-access-control-join-groups to the override so it matches Create Groups. CSS-only; the field registration was already correct (non-threaded).
|
Claude finished @jitendrabanjara1991's task —— View job Pull Request Review for PROD-9975I have completed a comprehensive code review focusing on code quality, bugs, performance, and security. The changes look well-implemented with good attention to detail. 📋 Review SummaryThis PR fixes two issues in the Access Controls interface:
✅ Code Quality & Best PracticesExcellent adherence to coding standards:
Strong React patterns:
🔍 Technical AnalysisJavaScript Changes (
|
|
@claude Review from fresh |
|
Claude finished @KartikSuthar's task in 3m 4s —— View job Code Review for PROD-9975Tasks:
SummaryThis PR addresses two issues in the Access Controls admin UI:
Both are UI bugs with no backend logic impact. Changes are minimal and focused. SCSS Fix —
|
Jira Issue:
https://buddyboss.atlassian.net/browse/PROD-9975
https://buddyboss.atlassian.net/browse/PROD-9974
General Note
Keep all conversations related to this PR in the associated Jira issue(s). Do NOT add comment on this PR or edit this PR’s description.
Notes to Developer
Notes to Reviewer