Skip to content

Commit

Permalink
Replace 'response' with 'res' (#1694)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipankaj07 authored Nov 12, 2024
1 parent e6876cd commit 81c7703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/references/express/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 81c7703

Please sign in to comment.