Skip to content

fix(permissions): honour permission on bulk actions and header items - #185

Merged
roncodes merged 1 commit into
release/v0.4.4from
fix/bulk-action-permission
Sep 28, 2026
Merged

roncodes merged 1 commit into
release/v0.4.4from
fix/bulk-action-permission

Conversation

@roncodes

Copy link
Copy Markdown
Member

Summary

  • Layout::Resource::Tabular bulk actions ignored bulkAction.permission, so a user could run bulk delete, cancel or dispatch without the permission. A bulk action whose permission fails now renders disabled, with the unauthorized hint and no click handler. This is the same convention the action buttons in the same template use.
  • Layout::Header::SmartNavMenu hides items, including extension shortcuts, whose own permission the user lacks. It works together with fleetbase/ember-core, which copies permission onto registered shortcuts.

Part of the Fleet-Ops permission enforcement audit (companion PRs in fleetops, core-api and ember-core).

Known gaps, not changed here

  • Dropdown items inside actionButtons and panel/header-actions still ignore permission. Fleet-Ops filters its order details menu itself.

Test plan

  • eslint and ember-template-lint on the changed files
  • In the console as a dispatcher without fleet-ops delete order: Orders → Bulk actions → Delete is disabled

- Layout::Resource::Tabular bulk actions ignored bulkAction.permission, so
  users could run bulk delete/cancel/dispatch they were not allowed to. They
  now render disabled with the unauthorized hint, like action buttons.
- The header smart nav hides items (including extension shortcuts) whose own
  permission the user lacks.
@roncodes
roncodes merged commit 05d176f into release/v0.4.4 Sep 28, 2026
@roncodes
roncodes deleted the fix/bulk-action-permission branch September 28, 2026 03:25
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