ebc4fe0f23
isMechanic() calls hasAnyRole(['mechanic']) via Spatie which checks the model_has_roles table with team_id scoping. If roles are not correctly seeded for a tenant, admins/owners could accidentally pass the mechanic filter and see only WOs where master_id = their own id (i.e. nothing). Now uses $user->role === 'mechanic' directly — no Spatie involved — so admin/owner/manager always see all WOs in their tenant. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>