unexport user

Former-commit-id: 2ee4d9622c
This commit is contained in:
Henrique Dias
2017-06-25 11:40:23 +01:00
parent 7ba14ada7b
commit 00be335a7c
10 changed files with 64 additions and 35 deletions

View File

@@ -21,7 +21,7 @@ func (c *FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, er
fi *FileInfo
code int
err error
user *User
user *user
)
// Checks if the URL matches the Assets URL. Returns the asset if the
@@ -38,7 +38,7 @@ func (c *FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, er
if _, ok := c.Users[username]; ok {
user = c.Users[username]
} else {
user = c.User
user = c.user
}
// Checks if the request URL is for the WebDav server