diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-02-07 16:30:44 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-02-07 16:30:44 +0300 |
commit | 2afaf4bf4532acd4a151c23ec2aa97842e9e3020 (patch) | |
tree | aa51809d365730a78482aa320eb1aaab70e8e216 | |
parent | 1314f3200fb745a227020a4276b80c795af95f82 (diff) | |
download | sproxy2-2afaf4bf4532acd4a151c23ec2aa97842e9e3020.tar.gz |
Oops ¯\_(ツ)_/¯
-rw-r--r-- | src/Sproxy/Server/DB.hs | 2 |
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 |