mobile bunch of updayes

This commit is contained in:
Henrique Dias committed 2017-01-01 22:40:12 +00:00
1 parent fc489d6d6d
commit 28552c1940
8 files changed
+340 -122

No files matched your search

+6 -1
View File
@@ -57,6 +57,11 @@ func GetListing(u *config.User, filePath string, baseURL string) (*Listing, erro
for _, f := range files {
name := f.Name()
allowed := u.Allowed("/" + name)
if !allowed {
continue
}
if f.IsDir() {
name += "/"
@@ -71,7 +76,7 @@ func GetListing(u *config.User, filePath string, baseURL string) (*Listing, erro
i := Info{
FileInfo: f,
URL: url.String(),
UserAllowed: u.Allowed("/" + name),
UserAllowed: allowed,
}
i.RetrieveFileType()