Skip to content

Commit b09428d

Browse files
claudeemoss08
authored andcommitted
fix(tms): authorize the GraphQL shipment analytics query
The resolver checked that the caller was authenticated and stopped there, so anyone with a session could read revenue, margin, cost per mile, at-risk loads, and the customer mix regardless of what their role allowed. It is the path the client actually uses — the REST analytics handler is the fallback for other pages — so gating that handler alone left the real door open. It now requires shipment read, the same gate every other shipment query carries. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J6ZmrDoHvhoY4zLkcXWwm6
1 parent 4a38ef4 commit b09428d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

services/tms/internal/api/graphql/resolver/shipment.resolvers.go

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)