mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-30 01:26:43 +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)
|
SendErrorResult(res, ErrNotAuthorized)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
ctx.Context = context.WithValue(ctx.Context, "AUDIT", false)
|
||||||
if err = auth.Mkdir(ctx, path); err != nil {
|
if err = auth.Mkdir(ctx, path); err != nil {
|
||||||
perms.CanCreateDirectory = NewBool(false)
|
perms.CanCreateDirectory = NewBool(false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user