diff --git a/docs/references/express/overview.mdx b/docs/references/express/overview.mdx index d51755cae3..ed27f686c2 100644 --- a/docs/references/express/overview.mdx +++ b/docs/references/express/overview.mdx @@ -103,7 +103,7 @@ const hasPermission = (req, res, next) => { // Handle if the user is not authorized if (!auth.has({ permission: 'org:admin:testpermission' })) { - return response.status(403).send('Forbidden') + return res.status(403).send('Forbidden') } return next()