Closed freiondrej-lokalise closed 1 year ago
https://github.com/PacktPublishing/Accelerating-Server-Side-Development-with-Fastify/blob/fd690dd8efde85dec4e82f9bdc7fe5a6ea80f862/Chapter%203/managing-the-routes-scope-nested.cjs#L29
IMO it should be request.user.isAdmin, no?
request.user.isAdmin
EDIT: seems to be fixed in https://github.com/PacktPublishing/Accelerating-Server-Side-Development-with-Fastify/pull/54 🙏
Thanks for pointing out. We are waiting to push a new PDF version of the book with multiple fixes. We will merge/close the open PRs when it will be uploaded to the stores 👍🏼
https://github.com/PacktPublishing/Accelerating-Server-Side-Development-with-Fastify/blob/fd690dd8efde85dec4e82f9bdc7fe5a6ea80f862/Chapter%203/managing-the-routes-scope-nested.cjs#L29
IMO it should be
request.user.isAdmin
, no?EDIT: seems to be fixed in https://github.com/PacktPublishing/Accelerating-Server-Side-Development-with-Fastify/pull/54 🙏