fix (audit): hint to auditor

This commit is contained in:
MickaelK
2024-05-17 03:01:50 +10:00
parent 63c2f0ebf4
commit b87fbe9948

View File

@ -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)
}