Commit d115e23
fix(clients-view): add permission guard to Applications menu for tresurer (#3382)
The Applications button in the client hamburger menu was visible to all
users regardless of permissions when RBAC is enabled, because only the
child items inside the submenu had mifosxHasPermission guards and the
parent trigger button had none.
Add a combined permission check so the button only renders if the user
has at least one of: CREATE_LOAN, CREATE_SAVINGSACCOUNT,
CREATE_SHAREACCOUNT, CREATE_RECURRINGDEPOSITACCOUNT,
CREATE_FIXEDDEPOSITACCOUNT. Fixed the changes needed for the treasurer role.
Closes: WEB-844
fix(env): revert productionModeEnableRBAC default to false for backward compatibility
Co-authored-by: Ansh Varshney <your-email@example.com>1 parent fdb8b8f commit d115e23
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
212 | 222 | | |
213 | 223 | | |
214 | 224 | | |
| |||
0 commit comments