Skip to content

Commit

Permalink
Throw guard response
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Jan 25, 2024
1 parent 6398879 commit f3cf725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/maps/ingestion/@id/+guard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
};

0 comments on commit f3cf725

Please sign in to comment.