From f3cf725a2f4ce558ee8d6212320eaf0cae39d50d Mon Sep 17 00:00:00 2001 From: Cannon Lock Date: Thu, 25 Jan 2024 08:25:12 -0600 Subject: [PATCH] Throw guard response --- src/pages/maps/ingestion/@id/+guard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/maps/ingestion/@id/+guard.js b/src/pages/maps/ingestion/@id/+guard.js index 75c39faa..a5475e16 100644 --- a/src/pages/maps/ingestion/@id/+guard.js +++ b/src/pages/maps/ingestion/@id/+guard.js @@ -17,6 +17,6 @@ export const guard = (pageContext) => { } if (!user.groups.includes(1)) { // Render the error page and show message to the user - return render(403, "Only admins are allowed to access this page."); + throw render(403, "Only admins are allowed to access this page."); } };