aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Sproxy/Server/DB.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sproxy/Server/DB.hs b/src/Sproxy/Server/DB.hs
index 34d6109..b07a0a0 100644
--- a/src/Sproxy/Server/DB.hs
+++ b/src/Sproxy/Server/DB.hs
@@ -69,7 +69,7 @@ userGroups db email domain path method =
AND gp.domain = :domain
AND gp.privilege IN (
SELECT privilege FROM privilege_rule
- WHERE domain = domain
+ WHERE domain = :domain
AND :path LIKE path
AND method = :method
ORDER BY length(path) - length(replace(path, '/', '')) DESC LIMIT 1