From 4c8e023e9f8490940d130aa68958ae844eb7368a Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 22 Oct 2016 09:19:08 +0100 Subject: [PATCH] update --- file/listing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/listing.go b/file/listing.go index 71f0cb71..757a9080 100644 --- a/file/listing.go +++ b/file/listing.go @@ -131,7 +131,7 @@ func (i Info) loadDirectoryContents(file http.File, basePath string, u *config.U fileinfos = append(fileinfos, Info{ FileInfo: f, URL: url.String(), - UserAllowed: u.Allowed(url.String()), + UserAllowed: u.Allowed(i.VirtualPath), }) }