trpc-protected-procedure-insufficient-for-resource-authorization

protectedProcedure in tRPC only verifies that a user is authenticated — it does not scope queries to resources the user owns or is permitted to access. Without explicit org/role/ownership checks on every router, any authenticated user can read or mutate any other user’s tasks. Authorization must be enforced at the query level, not just at the authentication gate.