aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-02-07 16:30:44 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-02-07 16:30:44 +0300
commit2afaf4bf4532acd4a151c23ec2aa97842e9e3020 (patch)
treeaa51809d365730a78482aa320eb1aaab70e8e216
parent1314f3200fb745a227020a4276b80c795af95f82 (diff)
downloadsproxy2-2afaf4bf4532acd4a151c23ec2aa97842e9e3020.tar.gz
Oops ¯\_(ツ)_/¯
-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