Skip to content

v0.7.1

Latest

Choose a tag to compare

@MZC-CSC MZC-CSC released this 15 Oct 07:59
5c319e2

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/list and POST /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 ([], not null) to these users (#97)
  • Empty lookups no longer return everything: MenuList and BuildUserMenuTree return 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