mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 16:32:31 +01:00
fix (audit): hint to auditor
This commit is contained in:
parent
63c2f0ebf4
commit
b87fbe9948
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue