Repository navigation
What's Changed
Bug Fixes
- Users without a platform role received every menu: a user with no platform role (for example, right after sign-up approval, before a group or role is assigned) got the full menu from
POST /api/users/menus/listandPOST /api/users/menus-tree/list. With no role IDs, the menu mapping lookup ran without a role condition, and an empty menu ID list then loaded all menus. Both APIs now return an empty list ([], notnull) to these users (#97) - Empty lookups no longer return everything:
MenuListandBuildUserMenuTreereturn an empty result when there are no role IDs or no mapped menus, and the parent menu lookup is skipped when there are no parent IDs
No database schema or environment variable changes.
Full Changelog: v0.7.0...v0.7.1