Tanstack Start
Maintenance & work orders

Access & permissions

Permission codes and organization/group context for maintenance and work-order routes.

The dashboard wraps content in a route guard that checks organization or group context and permission codes configured per path prefix.

Maintenance (/dashboard/maintenance/...)

Matching config uses prefix /dashboard/maintenance with group-level access.

You need at least one of:

  • view_alert
  • manage_alert

If your role has only view_alert, that satisfies the any check. If you have neither, you see Access denied for the configured route name Maintenance with a short reason (for example missing group context or missing permission codes).

Work orders (/dashboard/work-order/...)

Matching config uses prefix /dashboard/work-order with group-level access.

You need at least one of:

  • view_vehicle
  • list_vehicle

Organization and group context

  • Group-level routes require a valid organization and, when the organization has groups, a selected group that belongs to that organization. If you are in the wrong group or none is selected, you may be blocked—see Permissions and access and Groups.

What you see when access fails

The guard shows a panel titled Access denied, the route display name (for example Maintenance or Work Order), and a reason string. Common cases match the general guide: switch organization/group, or ask an administrator to add the permission codes above to your role.

Even with permissions, Maintenance and Work Order may not appear in the left sidebar. Use a direct URL or an internal link from your organization.

On this page