From 2afaf4bf4532acd4a151c23ec2aa97842e9e3020 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 7 Feb 2017 16:30:44 +0300 Subject: Oops ¯\_(ツ)_/¯ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Sproxy/Server/DB.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3