From d956238c6e6b6a6322a84363b181caca411f27b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Ba=CC=88chler?= Date: Thu, 4 Jan 2024 20:20:38 +0100 Subject: [PATCH] Fix loader function in exercise 10 README --- exercise/10-admin-user/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercise/10-admin-user/README.md b/exercise/10-admin-user/README.md index 55d2068..3b69c8d 100644 --- a/exercise/10-admin-user/README.md +++ b/exercise/10-admin-user/README.md @@ -66,7 +66,7 @@ async function requireUserPermission(request: Request, permission: string) { } export async function loader({ request }: LoaderArgs) { - await requireUserPermission("emails.write"); + await requireUserPermission(request, "emails.write"); return json({}); } ```