mobile bunch of updayes
This commit is contained in:
1 parent
fc489d6d6d
commit
28552c1940
8 files changed
+340
-122
No files matched your search
+6
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user