Skip to content

fix(menu): carry permission onto registered header shortcuts - #94

Merged
roncodes merged 1 commit into
release/v0.3.25from
fix/header-shortcut-permission
Oct 3, 2026
Merged

roncodes merged 1 commit into
release/v0.3.25from
fix/header-shortcut-permission

Conversation

@roncodes

Copy link
Copy Markdown
Member

Summary

registerHeaderMenuItem rebuilds each shortcut field by field and dropped permission, so the header could never filter shortcuts by permission. Shortcuts now keep their own permission, or inherit the parent menu item's.

The header filtering itself is in fleetbase/ember-ui (SmartNavMenu). Fleet-Ops shortcuts now declare their module permission (fleetbase/fleetops).

Test plan

  • A user without fleet-ops list vehicle no longer sees the Vehicles shortcut in the header

registerHeaderMenuItem rebuilt each shortcut field by field and dropped
permission, so the header could not filter shortcuts by permission.
Shortcuts now keep their own permission or inherit the parent item's.
@roncodes
roncodes changed the base branch from main to release/v0.3.25 October 3, 2026 02:17
@roncodes
roncodes merged commit d3cc097 into release/v0.3.25 Oct 3, 2026
6 checks passed
@roncodes
roncodes deleted the fix/header-shortcut-permission branch October 3, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant