Add InpatientClinicalDischarge to privilege tree; document 3-step privilege process#19678
Conversation
…process The InpatientClinicalDischarge privilege was added to Privileges.java in PR #19658 but was not registered in UserPrivilageController.java, making it invisible in the admin privilege management UI. Administrators had no way to grant this privilege through the UI. Changes: - Register InpatientClinicalDischarge as a DefaultTreeNode under the "Clinical" branch of the Inward section in UserPrivilageController.java - Update developer_docs/security/privilege-system.md with an explicit 3-step checklist and warning that enum-only addition is not sufficient - Update CLAUDE.md with a "When Adding a New Privilege" section linking to the privilege system guide Closes #19677 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThis pull request addresses a missing privilege registration and improves developer documentation. The Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
InpatientClinicalDischargeas aDefaultTreeNodeunder the Clinical branch of the Inward section inUserPrivilageController.java— it was missing, so administrators had no way to grant this privilege through the UIdeveloper_docs/security/privilege-system.mdwith an explicit 3-step checklist and a warning that adding the enum value alone is NOT sufficient (introduced after this was missed in PR Implement three-tier discharge system: clinical, room, and hospital discharge #19658)CLAUDE.mdwith a When Adding a New Privilege section pointing to the guideRoot Cause (PR #19658)
The
InpatientClinicalDischargeprivilege was added toPrivileges.javain PR #19658 but the matchingDefaultTreeNoderegistration inUserPrivilageController.javawas omitted, making the privilege invisible in/admin/users/user_privileges.xhtml.Test plan
/admin/users/user_privileges.xhtmlInward → Clinical— verify Clinical Discharge now appearsinward_clinical_discharge.xhtmlbecomes accessibleCloses #19677
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation