Guard that requires all of the specified permissions. Returns 401 if no principal, 403 if any missing.
Array of permission names (all required)
Middleware function
app.router.post('/bulk', { middleware: [requireAllPermissions(['users:create', 'users:send-welcome'])], handler,}); Copy
app.router.post('/bulk', { middleware: [requireAllPermissions(['users:create', 'users:send-welcome'])], handler,});
Guard that requires all of the specified permissions. Returns 401 if no principal, 403 if any missing.