Expand middleware.

This commit is contained in:
James Cole
2026-02-27 21:29:49 +01:00
parent 5255a17b38
commit d88b728073

View File

@@ -157,11 +157,7 @@ $app = Application::configure(basePath: dirname(__DIR__))
// This middleware is added to ensure that the user is not only logged in and
// authenticated (with MFA and everything), but also admin.
$middleware->appendToGroup('admin', [
Authenticate::class,
MFAMiddleware::class,
IsAdmin::class,
Range::class,
InterestingMessage::class,
]);
// if the user is not logged in, this group applies.