mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-29 09:07:30 +08:00
fix (audit): hint to auditor
This commit is contained in:
@ -94,6 +94,7 @@ func FileLs(ctx *App, res http.ResponseWriter, req *http.Request) {
|
||||
SendErrorResult(res, ErrNotAuthorized)
|
||||
return
|
||||
}
|
||||
ctx.Context = context.WithValue(ctx.Context, "AUDIT", false)
|
||||
if err = auth.Mkdir(ctx, path); err != nil {
|
||||
perms.CanCreateDirectory = NewBool(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user