Module: middleware/isAdmin

Checks if the user has the admin role; If the user is an admin then the request is continued; If the user is not an admin then he is redirect to the 404-page.
Parameters:
Name Type Description
req Object Express request object
res Object Express response object
next function Express next middleware function
Source:
See:
Returns:
Type
undefined