From 1877ee48948e5952a694cfc666ff65a986211c46 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 1 Apr 2020 22:50:46 -0700 Subject: Add _ to guardNs whitelist If we've gotten past the first auth check then we are already "authenticated", or whatever. --- Run/Que/Server.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Run/Que/Server.hs') diff --git a/Run/Que/Server.hs b/Run/Que/Server.hs index 38c6bdc..69af529 100644 --- a/Run/Que/Server.hs +++ b/Run/Que/Server.hs @@ -114,7 +114,7 @@ routes = do (_, _, Just ("localhost:3000")) -> Scotty.status Http.ok200 _ -> Scotty.status Http.methodNotAllowed405 >> Scotty.text "not allowed: _ is a reserved namespace" - guardNs ns ["pub"] + guardNs ns ["pub", "_"] -- passed all auth checks app . modify <| upsertNamespace ns q <- app <| que ns qp -- cgit v1.2.3