Concept Flow - Permission middleware
Request received
Permission middleware runs
Check user permissions
Call next
Route handler
When a request comes in, the permission middleware checks if the user has rights. If yes, it passes control to the next handler; if no, it stops and sends a forbidden error.