1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-10 10:50:23 +08:00

fix user tmpfile permission

This commit is contained in:
源文雨
2023-05-10 00:34:02 +08:00
parent 125b47e5f7
commit 9c9b6e4eae
5 changed files with 6 additions and 15 deletions

View File

@@ -99,10 +99,6 @@ func UploadHandler(w http.ResponseWriter, r *http.Request) {
ff, h, err = r.FormFile("paper")
if err == nil {
defer ff.Close()
if !user.IsFileManager() {
writeresult(w, codeError, nil, "no upload permission", typeError)
return
}
ct := h.Header.Get("Content-Type")
fn := h.Filename
logrus.Infoln("[file.UploadHandler] receive paper, name:", fn)